4 ms·
I think much of what this cheatsheet covers really did not give me any problems when I was first learning Haskell. Most of the syntax is well-designed and intui
by tikhonj 14y ago
I think much of what this cheatsheet covers really did not give me any problems when I was first learning Haskell. Most of the syntax is well-designed and intuitive: for example, list comprehensions are just like set-builder notation from math and pattern matching does exactly what it looks like. (As an aside, I think this is a good example of why syntax does matter. I learned Haskell at the same time as Scheme, with no prior functional programming experience. Haskell's pattern matching syntax made understanding complex recursion far easier than Scheme's if and cond statements.)
Much of these difficulties are also ameliorated with a good text editor (Emacs). With good syntax highlighting and indentation, it's easy to write syntactically valid code. It also really helps to be able to easily load and run GHCi.
- gtani 14y agoI think haskell has more orthogonal language features than, say, java, where everything holds together pretty well but you can't un-congeal features and use by themselves. Besides GHCi this is my reference shelf - http://www.cl.cam.ac.uk/~ns441/files/thips.pdf http://www.cl.cam.ac.uk/~ns441/files/thips.pdf - http://acm.wustl.edu/functional/hs-breads.php http://acm.wustl.edu/functional/hs-breads.php ___________ - http://www.haskell.org/hoogle/ http://www.haskell.org/hoogle/ - http://www.haskell.org/haskellwiki/Typeclassopedia http://www.haskell.org/haskellwiki/Typeclassopedia - Prelude source and http://www.haskell.org/onlinereport/haskell2010/haskellch9.html#x16-1710009 http://www.haskell.org/onlinereport/haskell2010/haskellch9.h... _______________ - 2010, 98 reports (which are very readable, unstiff/undry docs - use google to search stackoverflow/questions/tagged/haskell - http://ezyang.com/haskell.html http://ezyang.com/haskell.html ____________ Books: Hudak's "School of Music" (tho I'm not sure how interesting it is unless you know how to read/play music), and the 3 books by Hutton, Thompson, and Bird. It has been remarked that the "gentle Intro" is actually kind of harsh, the Hutton and Thompson books really are gentle intro's: http://www.haskell.org/tutorial/ http://www.haskell.org/tutorial/ http://haskell.cs.yale.edu/euterpea-2/haskell-school-of-music/ http://haskell.cs.yale.edu/euterpea-2/haskell-school-of-musi... http://www.amazon.com/Pearls-Functional-Algorithm-Design-Richard/dp/0521513383 http://www.amazon.com/Pearls-Functional-Algorithm-Design-Ric...
- gtani 14y agohttp://strictlypositive.org/slicing-jpgs/ http://strictlypositive.org/slicing-jpgs/ http://www.fing.edu.uy/inco/cursos/proggen/Transparencias/PolitipicasHaskellX2.pdf http://www.fing.edu.uy/inco/cursos/proggen/Transparencias/Po... (on about the 17th google page for "haskell cheat" ___________________ also symbolhound works pretty well for searching stackoverflow for symbolic operator/function names, e.g. haskell <$> http://symbolhound.com/?q=haskell+%3C%24%3E http://symbolhound.com/?q=haskell+%3C%24%3E