6 ms·
You need to check syntax, or try some more basic examples first. In this case you pasted piece of code that won't work itself. If you want to get know more abo
by vmiroshnikov 12y ago
You need to check syntax, or try some more basic examples first. In this case you pasted piece of code that won't work itself.
If you want to get know more about it: http://learnyouahaskell.com/syntax-in-functions http://learnyouahaskell.com/syntax-in-functions
- skrebbel 12y agoSure, but my point is that maybe the top example should be one that'd work verbatim in the REPL, to not scare noobs like me away.
- moomin 12y agoYeah, the REPL story's a bit of a mess, but Haskellers tend to forget that.
- houshuang 12y agoJust to mention it here, IHaskell solves a lot of the annoyances with ghci. Easy multi-line input, don't need let in front of functions, can define modules and load them (automatically compiled), etc. I think they are working on support for template haskell too (important for experimenting with lens code etc)
- vmiroshnikov 12y agoOops, I missed that. Indeed example is not REPL ready.
- codygman 12y agoI totally agree with you.
- deleted 12y ago[deleted]