3 ms·
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.
by coolsunglasses 13y ago
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
- gizmo686 13y agoI 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.
- deleted 13y ago[deleted]
- coolsunglasses 13y agoSorry, yes, misspoke (so to speak) because I had friends waiting for me to queue a Dota 2 game :)