Difference between revisions of "Learning Haskell"

From HaskellWiki
Jump to: navigation, search
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]
   
=== Tutorials ===
+
=== Online tutorials ===
   
* [http://undergraduate.csse.uwa.edu.au/units/230.301/lectureNotes/tourofprelude.html A Tour of the Haskell Prelude (i.e. predefined functions)]
 
  +
* [http://www.haskell.org/haskellwiki/Meta-tutorial Meta-tutorial]
 
* [http://en.wikibooks.org/wiki/Haskell Haskell Wikibook] A long tutorial on Haskell that includes "Yet Another Haskell Tutorial", "Write Yourself a Scheme in 48 Hours" and "All about monads".
 
* [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 (classic text)]
+
* [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]
* [http://en.wikibooks.org/wiki/Haskell Haskell Wikibook] A long tutorial on Haskell that includes "Yet Another Haskell Tutorial" and "Write Yourself a Scheme in 48 Hours".
 
   
 
=== 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://undergraduate.csse.uwa.edu.au/units/230.301/lectureNotes/tourofprelude.html A Tour of the Haskell Prelude (i.e. predefined functions)]
 
* [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

LearningHaskell.gif

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

Online tutorials

Advanced tutorials

Debugging/profiling/optimization

Monads

Type classes

Generic programming

Popular libraries

Reference

Course material