Difference between revisions of "Learning Haskell"
m (added Hutton book) |
(Added monads/libs/type classes/generics sections) |
||
Line 68: | Line 68: | ||
* [http://www.cs.nott.ac.uk/~gmh/book.html Programming in Haskell] |
* [http://www.cs.nott.ac.uk/~gmh/book.html Programming in Haskell] |
||
− | === |
+ | === Online tutorials === |
⚫ | |||
+ | * [http://www.haskell.org/haskellwiki/Meta-tutorial Meta-tutorial] |
||
⚫ | |||
* [http://www.cs.utah.edu/~hal/docs/daume02yaht.pdf Yet Another Haskell Tutorial] (best tutorial available online, also [http://pub.hal3.name/daume02yaht.pdf here]) |
* [http://www.cs.utah.edu/~hal/docs/daume02yaht.pdf Yet Another Haskell Tutorial] (best tutorial available online, also [http://pub.hal3.name/daume02yaht.pdf here]) |
||
* [http://www.cs.ou.edu/~rlpage/fpclassCurrent/textbook/haskell.shtml Two dozen short lessons] |
* [http://www.cs.ou.edu/~rlpage/fpclassCurrent/textbook/haskell.shtml Two dozen short lessons] |
||
− | * [http://www.haskell.org/tutorial/ A Gentle Introduction to Haskell |
+ | * [http://www.haskell.org/tutorial/ A Gentle Introduction to Haskell] - classic text, but not so gentle really :D |
* [ftp://ftp.geoinfo.tuwien.ac.at/navratil/HaskellTutorial.pdf Haskell-Tutorial] |
* [ftp://ftp.geoinfo.tuwien.ac.at/navratil/HaskellTutorial.pdf Haskell-Tutorial] |
||
* [http://www.informatik.uni-bonn.de/~ralf/teaching/Hskurs_toc.html Online Haskell Course] (German) |
* [http://www.informatik.uni-bonn.de/~ralf/teaching/Hskurs_toc.html Online Haskell Course] (German) |
||
* [http://www.haskell.org/~pairwise/intro/intro.html Haskell for C Programmers] |
* [http://www.haskell.org/~pairwise/intro/intro.html Haskell for C Programmers] |
||
⚫ | |||
=== Advanced tutorials === |
=== Advanced tutorials === |
||
Line 84: | Line 84: | ||
* [http://halogen.note.amherst.edu/%7Ejdtang/scheme_in_48/tutorial/overview.html Write Yourself a Scheme in 48 Hours] |
* [http://halogen.note.amherst.edu/%7Ejdtang/scheme_in_48/tutorial/overview.html Write Yourself a Scheme in 48 Hours] |
||
* [http://research.microsoft.com/Users/simonpj/papers/marktoberdorf/ Tackling the Awkward Squad] (on I/O, interfacing to C, concurrency and exceptions) |
* [http://research.microsoft.com/Users/simonpj/papers/marktoberdorf/ Tackling the Awkward Squad] (on I/O, interfacing to C, concurrency and exceptions) |
||
+ | |||
+ | === Debugging/profiling/optimization === |
||
+ | |||
+ | === Monads === |
||
+ | |||
+ | * [http://sigfpe.blogspot.com/2006/08/you-could-have-invented-monads-and.html You Could Have Invented Monads! (And Maybe You Already Have.)] |
||
+ | * [http://citeseer.ist.psu.edu/wadler95monads.html Monads for Functional Programming] |
||
+ | * [http://www.haskell.org/all_about_monads/html/ All about monads] |
||
+ | * [http://haskell.org/haskellwiki/IO_inside IO inside: down the Rabbit Hole] |
||
+ | |||
+ | === Type classes === |
||
+ | |||
+ | * [http://homepages.inf.ed.ac.uk/wadler/papers/class/class.ps.gz The paper that at first time introduced type classes and their implementation using dictionaries] |
||
+ | * [http://haskell.org/haskellwiki/Research_papers/Type_systems#Type_classes More papers on the type classes] |
||
+ | |||
+ | === Generic programming === |
||
+ | |||
+ | * [http://www.cs.vu.nl/boilerplate/#papers Scrap your boilerplate] |
||
+ | |||
+ | === Popular libraries === |
||
+ | |||
+ | * ByteStrings? |
||
+ | * [http://www.cs.uu.nl/people/daan/download/parsec/parsec.html Parsec, a fast combinator parser] |
||
+ | * [http://haskell.org/haskellwiki/Modern_array_libraries Modern array libraries] |
||
+ | * Gtk2Hs? |
||
=== Reference === |
=== Reference === |
||
Line 89: | Line 114: | ||
* [http://www.haskell.org/hawiki/HaskellNewbie Haskell Newbie] |
* [http://www.haskell.org/hawiki/HaskellNewbie Haskell Newbie] |
||
* [http://cs.anu.edu.au/Student/comp1100/haskell/tourofsyntax.html Tour of the Haskell Syntax] |
* [http://cs.anu.edu.au/Student/comp1100/haskell/tourofsyntax.html Tour of the Haskell Syntax] |
||
⚫ | |||
* [http://zvon.org/other/haskell/Outputglobal/index.html Haskell Reference] |
* [http://zvon.org/other/haskell/Outputglobal/index.html Haskell Reference] |
||
* [http://www.haskell.org/haskellwiki/Reference_card Haskell Reference Card] |
* [http://www.haskell.org/haskellwiki/Reference_card Haskell Reference Card] |
Revision as of 13:35, 2 August 2007
This portal points to places where you can go if you want to learn Haskell.
The Introduction to Haskell on the Haskell website tells you what Haskell gives you: substantially increased programmer productivity, shorter, clearer, and more maintainable code, fewer errors, higher reliability, a smaller semantic gap between the programmer and the language, shorter lead times. There is an old but still relevant paper about Why Functional Programming Matters by John Hughes. More recently, Sebastian Sylvan wrote an article about Why Haskell Matters.
There is also a table comparing Haskell to other functional languages. Many questions about functional programming are answered by the comp.lang.functional FAQ.
Implementations
Here is an overview about Haskell implementations:
Messages | Size | Tools | Remarks | |
---|---|---|---|---|
Hugs | +/- | ++ | - | Fast compilation; used a lot for learning Haskell and rapid code development. See also WinHugs. |
GHC | + | - | ++ | Many language extensions; generated code is very fast |
NHC | ? | + | ++ | Profiling, debugging, tracing |
Yhc | ? | + | ? | Compiles to bytecodes. Runtime easily portable. Still under heavy development. |
Helium | ++ | ++ | - | No type classes (yet!) and thus incompatible with most material on this site. Made for teaching/learning. |
Material
Below there are links to certain introductory material. If you want to dig deeper, see Books and tutorials.
Textbooks
- The Haskell School of Expression
- Haskell: the Craft of Functional Programming
- Introduction to Functional Programming using Haskell
- An Introduction to Functional Programming Systems Using Haskell
- Algorithms: A functional programming approach
- The Haskell Road to Logic, Maths, and Programming
- Programming in Haskell
Online tutorials
- Meta-tutorial
- Haskell Wikibook A long tutorial on Haskell that includes "Yet Another Haskell Tutorial", "Write Yourself a Scheme in 48 Hours" and "All about monads".
- Yet Another Haskell Tutorial (best tutorial available online, also here)
- Two dozen short lessons
- A Gentle Introduction to Haskell - classic text, but not so gentle really :D
- Haskell-Tutorial
- Online Haskell Course (German)
- Haskell for C Programmers
Advanced tutorials
- Hitchhikers Guide to Haskell
- Write Yourself a Scheme in 48 Hours
- Tackling the Awkward Squad (on I/O, interfacing to C, concurrency and exceptions)
Debugging/profiling/optimization
Monads
- You Could Have Invented Monads! (And Maybe You Already Have.)
- Monads for Functional Programming
- All about monads
- IO inside: down the Rabbit Hole
Type classes
- The paper that at first time introduced type classes and their implementation using dictionaries
- More papers on the type classes
Generic programming
Popular libraries
- ByteStrings?
- Parsec, a fast combinator parser
- Modern array libraries
- Gtk2Hs?
Reference
- Haskell Newbie
- Tour of the Haskell Syntax
- A Tour of the Haskell Prelude (i.e. predefined functions)
- Haskell Reference
- Haskell Reference Card
- A tour of the Haskell Monad functions
- Tour of the Helium Prelude
- Some common Hugs error messages
- Some Haskell Idioms
- Questions and Answers (old Haskell wiki)
Course material
- Programming in Haskell, Chalmers
- CS 11 Caltech
- Functional programming: course notes (English, Dutch, Spanish), slides in Dutch
- CS1011: Tutorials, lab exercises and solutions