Installation


This course will be using the long term support (LTS) distribution of Haskell from Stackage. You can install it using the Haskell stack build tool, which should be sufficiently cross-platform for our purposes, and faily well documented.

Once installed, you should be able to run the command

$ stack

in a terminal, and the expected output is a list of options.

Then, run

$ stack setup --resolver lts-19.20

Which will download and install the required versions of the GHC compiler and libraries. Next, you'll need to set this version as the default by running:

$ stack config set -v resolver lts-19.20

Interaction


To open ghci, run

$ stack exec ghci -- -W

(please verify that it presents itself as version 9.0.2), or

If your system is a Unix/Linux system, it can be advantageuos to put the line

alias ghci='stack exec ghci -- -W'

in your .bashrc.

Note: If your are inside a stack project folder, then

stack ghci

will launch the relevant version of the interpreter loop.