Difference between revisions of "Learning Haskell"

From HaskellWiki
Jump to: navigation, search
(Undid prev. change.)
(internalize haskellwiki links)
Line 72: Line 72:
 
=== Online tutorials ===
 
=== Online tutorials ===
   
* [http://www.haskell.org/haskellwiki/Meta-tutorial 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://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])
Line 83: Line 83:
 
=== Advanced tutorials ===
 
=== Advanced tutorials ===
   
* [http://www.haskell.org/haskellwiki/Hitchhikers_Guide_to_the_Haskell Hitchhikers Guide to Haskell]
+
* [[Hitchhikers guide to Haskell]]
 
* [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)
Line 94: Line 94:
 
* [http://citeseer.ist.psu.edu/wadler95monads.html Monads for Functional Programming]
 
* [http://citeseer.ist.psu.edu/wadler95monads.html Monads for Functional Programming]
 
* [http://www.haskell.org/all_about_monads/html/ All about monads]
 
* [http://www.haskell.org/all_about_monads/html/ All about monads]
* [http://haskell.org/haskellwiki/IO_inside IO inside: down the Rabbit Hole]
+
* [[IO inside|IO inside: down the Rabbit Hole]]
   
 
=== Type classes ===
 
=== 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://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]
+
* [[Research papers/Type systems#Type classes|More papers on the type classes]]
   
 
=== Generic programming ===
 
=== Generic programming ===
Line 109: Line 109:
 
* ByteStrings?
 
* ByteStrings?
 
* [http://www.cs.uu.nl/people/daan/download/parsec/parsec.html Parsec, a fast combinator parser]
 
* [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]
+
* [[Modern array libraries]]
 
* Gtk2Hs?
 
* Gtk2Hs?
   
 
=== Reference ===
 
=== Reference ===
   
* [http://www.haskell.org/hawiki/HaskellNewbie Haskell Newbie]
+
* [[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://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]
+
* Haskell [[Reference card]]
 
* [http://members.chello.nl/hjgtuyl/tourdemonad.html A tour of the Haskell Monad functions]
 
* [http://members.chello.nl/hjgtuyl/tourdemonad.html A tour of the Haskell Monad functions]
 
* [http://www.cs.uu.nl/helium/docs/TourOfPrelude.html Tour of the Helium Prelude]
 
* [http://www.cs.uu.nl/helium/docs/TourOfPrelude.html Tour of the Helium Prelude]
 
* [http://www.cs.ukc.ac.uk/people/staff/sjt/craft2e/errors/allErrors.html Some common Hugs error messages]
 
* [http://www.cs.ukc.ac.uk/people/staff/sjt/craft2e/errors/allErrors.html Some common Hugs error messages]
* [http://www.haskell.org/haskellwiki/Category:Idioms Some Haskell Idioms]
+
* [[Category:Idioms|Some Haskell Idioms]]
 
* [http://www.haskell.org/hawiki Questions and Answers (old Haskell wiki)]
 
* [http://www.haskell.org/hawiki Questions and Answers (old Haskell wiki)]
   

Revision as of 13:11, 14 December 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. The most popular implementation.
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.

Detailed information on the implementations can be found in a separate article.

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