Learning Haskell: Difference between revisions
mNo edit summary |
m (Removed two spam links from the Course Material section.) |
||
Line 133: | Line 133: | ||
* [http://www.cs.chalmers.se/Cs/Grundutb/Kurser/afp/ Advanced Functional Programming, Chalmers] | * [http://www.cs.chalmers.se/Cs/Grundutb/Kurser/afp/ Advanced Functional Programming, Chalmers] | ||
* [http://www.cs.chalmers.se/~koen/Aafp/ Advanced Advanced Functional Programming, Chalmers] | * [http://www.cs.chalmers.se/~koen/Aafp/ Advanced Advanced Functional Programming, Chalmers] | ||
* [http://www.cs.caltech.edu/courses/cs11/material/haskell/index.html CS 11 Caltech] | * [http://www.cs.caltech.edu/courses/cs11/material/haskell/index.html CS 11 Caltech] | ||
* [http://www.cs.uu.nl/docs/vakken/lfp/ Functional programming]: course notes ([http://www.cs.uu.nl/~jeroen/courses/fp-eng.pdf English], [http://www.cs.uu.nl/~jeroen/courses/fp-nl.pdf Dutch], [http://www.cs.uu.nl/~jeroen/courses/fp-sp.pdf Spanish]), slides in Dutch | * [http://www.cs.uu.nl/docs/vakken/lfp/ Functional programming]: course notes ([http://www.cs.uu.nl/~jeroen/courses/fp-eng.pdf English], [http://www.cs.uu.nl/~jeroen/courses/fp-nl.pdf Dutch], [http://www.cs.uu.nl/~jeroen/courses/fp-sp.pdf Spanish]), slides in Dutch | ||
* [http://www.cse.unsw.edu.au/~cs1011/ CS1011]: Tutorials, lab exercises and solutions | * [http://www.cse.unsw.edu.au/~cs1011/ CS1011]: Tutorials, lab exercises and solutions |
Revision as of 15:59, 5 April 2010
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
- 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".
- YAHT - 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
- Learn You a Haskell for Great Good! Beautiful, illustrated Haskell tutorial for programmers with less of a functional programming background.
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
- Monads
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
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
- Questions and Answers (old Haskell wiki)
- The Haskell Cheatsheet - A reference card and mini-tutorial in one.
Course material
- Introduction to Functional Programming, Chalmers
- Programming in Haskell, Chalmers
- Advanced Functional Programming, Chalmers
- Advanced Advanced Functional Programming, Chalmers
- CS 11 Caltech
- Functional programming: course notes (English, Dutch, Spanish), slides in Dutch
- CS1011: Tutorials, lab exercises and solutions