News for hackers. Stuff that matters.
Re:The Haskell Platform 2011.2 is out: GHC 7 for all by thisrod on Thursday March 10, 2011 @06:02PM (#2311196)
It would be nice for this site to give more detailed advice on studying Haskell. Learning a language should be a side effect of studying its canon of programs. Is there a book that relates to Haskell as TAoCP does to machine code, SICP to Scheme, K&R to C, and the dragon book to Lex and Yacc?
Re:The Haskell Platform 2011.2 is out: GHC 7 for all by jmillikin on Thursday March 10, 2011 @06:52PM (#2311334)
Real World Haskell: < http://book.realworldhaskell.org/ >

Written by three of the most prolific and capable Haskell library developers. It covers everything from introductory functional concepts to high-performance C-style stateful programming.

You can buy a dead tree, or read it online for free.

Re:The Haskell Platform 2011.2 is out: GHC 7 for all by kamechan on Friday March 11, 2011 @06:08AM (#2312976)
just finishing up a grad PL theory course, and RWH was definitely among the reading material. but i did find it anemic in many areas. i'll come back to that in a moment.

the pros of the book is that it offers a good introduction to the language and a reasonably good survey of some of the more advanced language features and tools such as QuickCheck, STM, concurrency/parallelism, etc.

the cons are that it leaves out one very new interesting direction called functional reactive programming, FRP, and i also thought its treatment of monads (esp. monad transformers) to be a bit thin. most of the time i just found myself going to publications on the more advanced topics than using a book such as RWH (or learnyouahaskell, which i actually quite like).

here are a few links i came across in the course that i think are worth sharing (in no particular order):

(1) http://www.cs.nott.ac.uk/~gmh/monads

(2) http://www.cs.nott.ac.uk/~gmh/monparsing.pdf

(3) http://www.grabmueller.de/martin/www/pub/Transformers.pdf

(4) http://pubs.doc.ic.ac.uk/error-handling-for-Haskell/error-ha...

(5) http://horna.org.ua/books/All_About_Monads.pdf

(6) http://web.cecs.pdx.edu/~mpj/pubs/springschool95.pdf

(7) http://www.cse.chalmers.se/~rjmh/QuickCheck/manual.html

some papers on FRP: http://conal.net/papers/icfp97/icfp97.pdf

this below is a link to a postscript version of "functional reactive programming from first principles", by hudak. http://j.mp/hkk6VC

and, finally, yet another haskell tutorial: https://secure.wikimedia.org/wikibooks/en/wiki/Haskell/YAHT

*EDIT: attempted to purtify multi-link mayhem.

Re:The Haskell Platform 2011.2 is out: GHC 7 for all by danieldk on Friday March 11, 2011 @02:01AM (#2312458)
At the time, the book seemed like a fresh breath of air, since it focused on solving real 'daily work'-style problems in Haskell. I used to recommend it to friends, but most of them were not so happy. The first few chapters are nice, but after that the examples really become contrived. Instead of giving simple standalone examples to explain a concept, the book starts using examples that tend to linger. People get bored or stuck and stop around chapter 6 to 8.

I am hopeful that Learn You a Haskell will serve as a good introduction to Haskell, and will recommend it to anyone interested.

RWH is still a fine book; once you understand Haskell, it's still great to go through the examples and exercises. But it is not a good starting point.

Re:The Haskell Platform 2011.2 is out: GHC 7 for all by T-R on Friday March 11, 2011 @02:19AM (#2312502)
It definitely gets a little tough around the Parser example, but it does lighten up again once you get through the monad transformer section, though.

For someone who's done some functional programming before, Real World Haskell is probably a good starting point; otherwise something like YAHT would probably be better.

Re:The Haskell Platform 2011.2 is out: GHC 7 for all by aperiodic on Thursday March 10, 2011 @07:29PM (#2311481)
I'm working through that book right now, and it's fantastic. I'd used haskell before in class, but I definitely suffered from the "fibonacci gap." Now, I'm starting to do small scripts in haskell, and hopefully I'll be able to tackle a decently-sized project soon. I can't recommend this book highly enough if you're curious about haskell.
Re:The Haskell Platform 2011.2 is out: GHC 7 for all by T-R on Friday March 11, 2011 @02:23AM (#2312511)
The kindle edition isn't too bad, either, though you have to read it in Landscape mode to minimize the number of odd line-breaks in the code.
Re:The Haskell Platform 2011.2 is out: GHC 7 for all by genera on Thursday March 10, 2011 @09:05PM (#2311821)
http://learnyouahaskell.com/

A very enjoyable tutorial. Supposedly, this site was going to come out in book form. If/when it does, it should become the de-facto "Camel book" for Haskell.

Re:The Haskell Platform 2011.2 is out: GHC 7 for all by sigzero on Friday March 11, 2011 @07:41AM (#2313114)
March 2011, 400 pp.

http://nostarch.com/lyah.htm

Re:The Haskell Platform 2011.2 is out: GHC 7 for all by jhpriestley on Thursday March 10, 2011 @07:09PM (#2311403)
If you're new, you might like something easy like the "gentle introduction to haskell" http://www.haskell.org/tutorial/. Unfortunately it does not cover more recent and advanced features; for that I would recommend Oleg Kiselyov's site http://okmij.org/ftp/Haskell/ (he is somewhat famous in the community for bringing advanced Haskell features "down to earth" with clear, simple examples).
Re:The Haskell Platform 2011.2 is out: GHC 7 for all by jmillikin on Thursday March 10, 2011 @07:15PM (#2311436)
This is the first, and I suspect only, time I have heard Oleg's examples described as "clear" or "simple".
Re:The Haskell Platform 2011.2 is out: GHC 7 for all by thisrod on Thursday March 10, 2011 @10:01PM (#2311955)
I've read some of his Scheme - thanks for pointing that out. Does anyone know who Oleg is in real life?
Re:The Haskell Platform 2011.2 is out: GHC 7 for all by scott_s on Thursday March 10, 2011 @06:23PM (#2311255)
I've been working my way through Yet Another Haskell Tutorial: http://www.cs.utah.edu/~hal/docs/daume02yaht.pdf
Re:The Haskell Platform 2011.2 is out: GHC 7 for all by BoppreH on Friday March 11, 2011 @12:36AM (#2312278)
For a light-hearted, _why's Ruby guide style, there's the http://learnyouahaskell.com .
Re:The Haskell Platform 2011.2 is out: GHC 7 for all by kanak on Thursday March 10, 2011 @06:25PM (#2311261)
> Is there a book that relates to Haskell as TAoCP does to machine code, SICP to Scheme, K&R to C, and the dragon book to Lex and Yacc?

My vote would be for Richard Bird and Phil Wadler's Intro to functional programming using Haskell.

Re:The Haskell Platform 2011.2 is out: GHC 7 for all by ashutoshmehra on Saturday March 12, 2011 @04:29AM (#2316455)
I have read a few chapters of this very beautiful book by Richard Bird called "Pearls of Functional Algorithm Design": http://www.amazon.com/Pearls-Functional-Algorithm-Design-Ric...

You should definitely check it out. If you already know Haskell and you love algorithms, that book will probably be more interesting than the Intro to Haskell book.

Also check out Okasaki's book of functional data structures: http://www.amazon.com/Purely-Functional-Structures-Chris-Oka...

Re:The Haskell Platform 2011.2 is out: GHC 7 for all by batterseapower on Friday March 11, 2011 @04:17AM (#2312770)
Possibly more up to date in Hutton's Programming in Haskell. I've heard very good things about it: http://www.cs.nott.ac.uk/~gmh/book.html
Re:The Haskell Platform 2011.2 is out: GHC 7 for all by kanak on Friday March 11, 2011 @10:41AM (#2313689)
I've read both books and like them both.

However, I prefer Bird/Wadler better because there's a pervasive "let's derive this"/"let's prove this" approach to the topics. By which I mean, given a spec, let's derive a program that does the task (and later, let's optimize this function using laws we know such as relations between map and filter, the laws of fold). Hutton takes this type of approach only in his final chapter.

Hutton is definitely easier, and does a better job of teaching you the core of Haskell, however Bird/Wadler teaches you how to derive programs from spec (further covered in Bird's Pearls of Functional Programming book).

I think the difference is like the one between How to Design Programs and Structure and Interpretation of Computer Programs.

Re:The Haskell Platform 2011.2 is out: GHC 7 for all by thisrod on Thursday March 10, 2011 @10:07PM (#2311966)
Thanks. That sounds good.
Re:The Haskell Platform 2011.2 is out: GHC 7 for all by dons on Thursday March 10, 2011 @06:24PM (#2311259)
Some advice is given in the "read more" link: http://hackage.haskell.org/platform/contents.html