Personal tools

Example code

From HaskellWiki

Revision as of 02:57, 23 October 2006 by DonStewart (Talk | contribs)

Jump to: navigation, search

To get a feel for what real world Haskell looks like, here are some examples from various popular Haskell projects. To start learning the language, good places to start are here, here and here.

1 Library code

Library code usually differs from application code: it is often highly structured, and documented with haddock, and can be rather optimised. Some instructive examples (syntax highlighting by hscolour):

2 Application code

Code from popular Haskell applications. Such code often makes use of a monadic IO, and sometimes other advanced features such as concurrency:

More code may be found on the wiki.