COMP3161/9164 Concepts of Programming Languages
Term 3, 2026

Setting up Haskell

1. On CSE Machines

The Glasgow Haskell Compiler is included on CSE machines, including the REPL ghci. For the assignments, the cabal build tool is available and will work to build and test your code.

2. Home machine

You can work with ghci and cabal as mentioned above. Alternatively, you can also install the stack build tool for Haskell. Once this is done, the entire compiler toolchain can be installed by typing stack setup. Typing stack repl should open ghci and stack exec ghc can be used to run ghc.

All assignments and exercises will come with build instructions for both cabal and stack.

2026-11-19 Thu 13:21

Announcements RSS