Parallel Functional Programming – Installing GHC on Chalmers’ student computersDAT280 / DIT261, LP4 2016
Home | Schedule | Labs | Lectures | Exam | AboutFire | Forum | TimeEdit | Links
Parallel Functional Programming – Installing GHC on Chalmers’ student computersDAT280 / DIT261, LP4 2016
Home | Schedule | Labs | Lectures | Exam | AboutFire | Forum | TimeEdit | Links

These instructions give access to the latest version of GHC.

GHC 7.10.2 is already available on the Chalmers computers, but in order to get access to it, you need to make sure to have the directory

/chalmers/sw/unsup64/phc/b/binh

in your path. One way to achieve this is to run these commands in a terminal:

echo 'setenv PATH "/chalmers/sw/unsup64/phc/b/binh:"$PATH' >> $HOME/.tcshrc
echo 'export PATH=/chalmers/sw/unsup64/phc/b/binh:$PATH'   >> $HOME/.bashrc

Restart the terminal to make sure that the new path is visible.

Note that if you run these commands several times, redundant lines will be added to your ~/.tcshrc and ~/.bashrc files. If so, you may want to clean them up afterwards.

Check that the setup works by running

> ghc --version
The Glorious Glasgow Haskell Compilation System, version 7.10.2

If the program prints the above version number, everything should work as expected.