News for hackers. Stuff that matters.
Re:Functional Programming 101 with Haskell by coolsunglasses on Friday January 24, 2014 @12:01AM (#7113418)
You're using the REPL, where every operation is basically happening in a do monad.

If you get an error like that where you intend to define something, use let.

like: let sumOfElements [] = 0

Re:Functional Programming 101 with Haskell by gizmo686 on Friday January 24, 2014 @12:07AM (#7113429)
I believe you mean that every operation is happening in the IO monad, and you input is being interpreted as if it was in a do block.
Re:Functional Programming 101 with Haskell by coolsunglasses on Friday January 24, 2014 @02:04AM (#7113728)
Sorry, yes, misspoke (so to speak) because I had friends waiting for me to queue a Dota 2 game :)