Labs
We offer four labs in the course.
The first lab is to refresh your Haskell skills. You don't have to hand in this lab, and you won't get a grade, but working on it does give a bonus point.
Work on the labs together with a lab-partner: discussing potential solutions and problems together helps learning and understanding. Mail Johan Jeuring if you cannot find a lab partner. You can self-enroll in a group with your lab partner in Brightspace. Make sure you are in a group on Tuesday Nov 24, when Lab 1 starts.
Each group will get a dedicated TA for the assessment of the labs.
The other three labs are assessed with Pass/Resit exam. Don't download the labs yet, we will add test cases to the labs, and update the starting framework. To pass a lab you have to do the following:
- Before you hand in your final solution: discuss your approach, your solution, the feedback from the auto grader/test cases at least once with your TA in a lab session. The TA will tick off the discussion
- Discuss the final solution you hand in with your TA
For each of the labs we will offer discussion opportunities. The dates on which you can discuss your intermediate solutions, and on or before which you need to submit your final solution are in the below table. The final grade for a lab is Pass/Resit exam.
| Lab | Description | Start | Discussion I | Discussion II | Discussion III | Submit |
|---|---|---|---|---|---|---|
| P0 | Haskell refresh | 17 Nov | ||||
| P1 | iCal | 24 Nov | 26 Nov | 1 Dec | 3 Dec | 7 Dec |
| P2 (WIP) | Arrow | 8 Dec | 8 Dec | 10 Dec | 15 Dec | 4 Jan |
| P3 (WIP) | CSharp | 5 Jan | 19 Jan | 24 Jan | 26 Jan | 1 Feb |
The assessment of your lab is done in a discussion with the TA to which you are connected. You make a separate appointment of 15 minutes with your TA, to discuss the lab you submitted. In this discussion you will have to show that you have thought about the problem and its solution, and that you have authored the solution to the problem yourself. Your solution does not have to be perfect, and it is not necessarily a problem if your solution is incomplete or contains some errors. Each member of the team has to be able to explain the submitted code.
In case there are questions about whether or not you are the author of the work you submitted, we may organise an oral exam about the lab.
Errata in the labs
P1 broken imports (patched 24 Nov)
- P1's
exe/Main.hsfile had some danglingimportstatements, which brokecabal build(but notcabal test). - This is fixed by prefixing
ICal.to the imported module names. - The bug is present in P1 version 0.2026.0.0
- The bug is fixed in P1 version 0.2026.1.0 (uploaded 24 Nov 11:55)
P1 unreliable haskell-language-server in nix develop (patched 24 Nov)
- P1's (optional)
nix developenvironment failed to integrate with some VSCode installations, since it provided a program namedhaskell-language-server-wrapperrather than the more commonhaskell-language-server. - This is fixed by getting HLS from
haskell.packagesrather than the top level ofnixpkgs. - The bug is present in P1 versions 0.2026.0.0 and 0.2026.1.0
- The bug is fixed in P1 version 0.2026.2.0 of P1 (uploaded 24 Nov 14:30),
along with minor code style improvements to the
flake.nix.