Sure, 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.
Yeah, the REPL story's a bit of a mess, but Haskellers tend to forget that.
Just 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)
Re:The New Haskell.org
by vmiroshnikov on Sunday February 15, 2015 @09:09AM
(#9052624)
Oops, I missed that. Indeed example is not REPL ready.
If you want to get know more about it: http://learnyouahaskell.com/syntax-in-functions