What lives here

Fifty short lessons, one unbroken chain: every page ends with a link to the next one, so you can read the course start to finish without ever wondering where to click. Each lesson teaches one idea with short examples, from the first script to a working command line tool.

Start with lesson 1, What is Haskell and why it matters. For a short description of the language read Haskell basics.

Lessons

Click a part of the course to open or close its lessons.

How to use this course

Type every example, do not just read it. Load each snippet into GHCi before moving on, because the error messages are the fastest way to learn what the type checker wants.

Two rules carry the whole course: write the signature first, and let the compiler drive. When a definition refuses to typecheck, the message names the exact expression that disagrees.