codeslower.com Savor Your Code.

The Haskell Cheatsheet

Learning Haskell is not easy. Besides the syntax, concepts, and advanced types, there is a real lack of succinct, accessible references. As I learned Haskell I frequently wanted a quick reference for syntax, keywords and other language elements. The Haskell Report, while very thorough, wasn't quite it.

For that reason I've created this cheatsheet. It's intended for beginning to intermediate Haskell programmers to use as a quick-reference guide for syntax, keywords or other language issues. You can obtain it in three different ways:

  • Download directly in PDF format: CheatSheet.pdf
  • As a Haskell package on HackageDB.
    • After downloading, unpack the tarball and the PDF is inside.
  • Using cabal install with "cabal install cheatsheet". Afterwards, run the "cheatsheet" program and it will tell you where the PDF is located.

The guide itself is written as a "literate" Haskell file, meaning it is directly executable. That file is available when using the latter two options above.

Feedback, comments and patches are welcome. Comment here or send me an email (jgbailey@codeslower.com). The source is hosted at github.com and patches can be submitted to git://github.com/m4dc4p/cheatsheet.git.

Category: None

Please login to comment.

1 Comments

  1. Neat! by Func. N. Stein (2008-10-17)

    Thanks for that - very cool!