This repo contains the Haskell Labs/Exercises for CS3016 in academic year 2017-18.
stack
is installed on ICTLAB machines,
and the Schools Unix machines for students.
To install on your own machine go to https://docs.haskellstack.org/en/stable/README/ and follow instructions carefully.
If git
is not installed on your machine, please make it so (via https://git-scm.com or elsewhere).
The first time, use a command-line tool to navigate to where you want to keep your CS3016 coursework and enter:
git clone http://gitlab.scss.tcd.ie/butrfeld/CS3016-1718.git
You may need to authenticate using your TCD/SCSS username and SCSS password. This should create a folder called CS3016-1718
.
To get future coursework updates, enter folder CS3016-1718
and issue the command:
git pull
We assume you start in the directory called CS3016-1718
Start up a command-line application
e.g. Terminal
on OS X, or cmd
on Windows.
Run the batchfile ICTLAB-SETUP.bat
here first.
Do not do this on your own personal Windows machine!
For Exercise NN go into the sub-folder called ExerciseNN
and read the ExerciseNN.md
file
for further instructions.
So, for Exercise 00, goto sub-folder Exercise00
, and follow the instructions in Exercise00.md
.
From the command line, issue the following command
> stack test
You might have to wait a while, particularly if this is the first time you do this.
Your task is to get all the tests to succeed.
Each exercise will have specific
instructions as to what should be uploaded. This may just be one or two Haskell sourcefiles that you were asked to create and/or modify, or it could involve compressing and uploading the entire ExerciseNN
folder.
Upload the corresponding material to Blackboard.
The contents of folder VisitingExtra
(when it appears) will be an exercise for visiting students who won't be taking the CS3016 exam next May. Other students are welcome to treat it as an optional exercise to do in their own time.