COMP3161/9164 Concepts of Programming Languages
Term 3, 2024

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

We recommend installing the stack build tool for Haskell. Once this is done, the entire compiler toolchain can be installed just by typing stack setup. This should work on Linux, Windows and Mac. Alternatively, the compiler and toolchain can be installed from distribution package managers on Linux, but these are often out of date or configured incorrectly.

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. If you are using this setup, follow the instructions for stack users.

2024-11-28 Thu 20:06

Announcements RSS