[Haskell-cafe] [ANN] Haskell Cheatsheet v1.0
jgbailey at gmail.com
Sat Oct 11 18:32:54 EDT 2008
On Sat, Oct 11, 2008 at 5:30 AM, Holger Siegel <holgersiegel74 at yahoo.de> wrote:
> - The explanation of the layout rule is wrong. If you define more than one
> value in a let declaration, then it is only required that the identifiers
> start on the same column.
Thank you - updated.
> - When I started to learn Haskell, I had problems with the use of (.) and ($).
> I had learned what function application and lambda abstractions look like, but
> then I looked at Haskell code written by experienced Haskellers and found
> expressions like (map (succ . succ) $ 1:xs) that I did not understand.
> A small section describing how to read such expressions could be useful for
Me too. I had a section on that originally but cut it due to time.
Patches are always welcome :)
> - the section about do-notation is more a mini-tutorial than a cheatsheet.
> Instead, you could show two or three examples that demonstrate how do-
> notation, list comprehensions and the operator >>= relate. That is what I had
> to look up more than once until I got used to it. There is also an example of
> what is wrong, where showing the right thing would have sufficed.
True, but I think it's helpful. That stuff really confused me at first.
More information about the Haskell-Cafe