Introduction to Functional Programming – Getting Access to hlint and Haste on Chalmers’ student computersTDA555 / DIT440, LP1 2016
Home | Schedule | Labs | Lectures | Exercises | Exam | About | FAQFire | Forum | TimeEdit | YouTube | Links
Introduction to Functional Programming – Getting Access to hlint and Haste on Chalmers’ student computersTDA555 / DIT440, LP1 2016
Home | Schedule | Labs | Lectures | Exercises | Exam | About | FAQFire | Forum | TimeEdit | YouTube | Links

To get access to hlint (which we want you to use from Lab 3 part II onwards), and the Haste compiler (for Lab 4 part II) you need to do the following:

Open a terminal window and type:

echo unsup >> $HOME/.vcs4/pathsetup

You only need to do this once. Log out and back in again.

Check that the setup works by running

> hastec --version
0.5.5.1

If the programs print the above version numbers, everything should work as expected.

For full information about how to control which versions of software to access, please look at the official documentation.

The following is optional: you can also change the version of GHC to a newer one (the default version of GHC on the student machines is very old). Note, however, that the old version of GHC uses simpler libraries and the types of many standard functions are simpler, and the error messages are easier to understand. But if you want (or need) a more recent version (7.10.2) you need to do the following in order to override the standard version:

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