Posted 04 Apr 2013

This tutorial is intended for people who are familiar with programming but not with functional programming languages. This series is not interactive yet, but we plan to update it later.

You can test if the interactive code execution works here by clicking on “Run” and seeing “Hello world” outputted:

Have fun!

  1. Using GHC, GHCi
  2. Basics
  3. Types, type classes
  4. Lists
  5. Thinking recursively

Next: Using GHC, GHCi

After installing the Haskell platform we have access to both the Glasgow Haskell Compiler (GHC) and the interpreter, GHCi. Throughout this tutorial series I will use GHCi, because it is interactive and easy to use. Nevertheless, here is how you compile a Haskell program with GHC (for Windows users, we let Mac and Linux users figure out compilation on their own :P) :

All posts in the same series:

  1. Introduction
  2. Using GHC, GHCi
  3. Basics
  4. Types, type classes
  5. Lists
  6. Thinking recursively

Hi there! is a multi-author site for tutorials and articles. We support interactive code execution out of the browser, so your tutorial readers can learn without installing anything on their machine!

The website itself is completely open source, send a PR with improvements or your own content here.