You will be using Haskell in Advanced Programming. You will not need a fancy setup - all you need is a recent version of the Glasgow Haskell Compiler (GHC), and the Cabal build tool. This document will tell you how to install these. Other tools (such as editor integration) may be useful to you, but is not required. We do not depend on very specific versions, but assume that you are using at least the following versions:
- GHC 9.6
- Cabal 3.10
If you follow this guide, you will install the right versions.
Install WSL
and follow the instructions below. Some students have reported trouble
using ghci
in the default terminal. Try using the new Windows
Terminal instead.
Use ghcup to install and manage the Haskell compiler and tools. Do not install GHC via the system package manager or similar unless you know what you are doing and can fix it yourself if it breaks.
Follow the instructions in the link above. Make sure to also check the
system
requirements,
as GHC requires a few system libraries to be installed, which is not
automatically done by ghcup
.
When ghcup
is installed, you can run ghcup tui
to enter a menu
where you can install and "set" (activate) which version of GHC and
Cabal you want to use. We recommend GHC 9.6.6 and Cabal 3.10.2.1.
Newer versions will probably work, but these are what we use for
testing.
Use this shell.nix.