bobatkey / CS316-2022

Materials for the 2022-2023 edition of CS316 "Functional Programming"

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

CS316 “Functional Programming”

Welcome to the source code repository for the University of Strathclyde CS316 “Functional Programming” course.

This is a course designed to teach Haskell to undergraduate students. The written course materials are available from this repository. Video lectures and access to the Mattermost forum for this course are available to Strathclyde students via the course's MyPlace page.

Getting started

The code in this repository is structured as a Stack project. You can install Stack by following the instructions on the linked page.

VSCode

The recommended text editor is Microsoft's Visual Studio Code. This has a nice Haskell extension that will do syntax highlighting, type checking and autocomplete for you. It also comes with a built-in Git implemenation, so you don't have to install that separately. I have prepared a short video that shows how to set up VS Code once you have it and Stack installed: CS316 : Getting started with VSCode (03:22) (Strathclyde students only).

By hand

If you don't want to use VSCode, or want to know what is going on behind the curtain, then you can clone and build the repository yourself. Here are the commands that you would type in on a Unix-like machine:

$ cd some/nice/directory      # replace 'some/nice/directory' with a real one
$ git clone https://github.com/bobatkey/CS316-2022.git
$ cd CS316-2022
$ stack build
    ... lots of output, might download some things ...
$ stack exec hello-cs316
hello CS316!
$ stack ghci lecture-notes/Week01.hs
    ... will start the interactive Haskell compiler with Week 1's lecture notes loaded ...

Syllabus and Lecture Notes

The lecture notes for this course are intended to accompany the video lectures, and provide mostly the same information in a searchable, accessible and less bandwidth hungry format.

The notes are Haskell files with interleaved code and commentary. You are encouraged to experiment by loading these files into ghci and editing them. Each week also has a set of tutorial questions that you should have a go at before the tutorial sessions on Fridays. The solutions will be released after the session.

You can take a look at last year's repository and the one before that for similar notes and some different exercises.

About

Materials for the 2022-2023 edition of CS316 "Functional Programming"

License:BSD 3-Clause "New" or "Revised" License


Languages

Language:Haskell 100.0%