This text is expected to be accurate at this moment (25th March 2019). Please let me know (JM) in case of any issues.
For all programming exercises and assignments you will use GHCi, the interpreter part of the Glasgow Haskell Compiler system.
You can install GHC and GHCi on your own computer from here. Choose the platform installation, unless you know what you are doing. The compiler itself without any additional stuff can be downloaded from here. Test your installation by creating a new file Test.hs containing the code
module Main where
main = putStrLn "Hello, world!"
Load the file and type main at the GHCi prompt. You should get the response "Hello, world!".
To use GHCi on the Linux student systems just type ghci at the prompt. You should get version 7.10.3 of ghc. (You may need to set your path to /opt/ghc/7.10.3/bin, either by saying
initcs or some other way.)
Editing Haskell files can be done by any text editor. For those favouring Emacs there is a haskell-mode which automatically handles indentation and syntax colouring. There is also a haskell mode definition for the Vim editor.