MorrowM / haskell-mooc

Haskell MOOC University of Helsinki (Cabal/HLS compatible fork)

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Haskell MOOC (Cabal/HLS compatible fork)

Course logo

University of Helsinki

Course page

License: CC BY-SA 4.0

This work is licensed under a Creative Commons Attribution-ShareAlike 4.0 International License.

About the course

This is an online course on Functional Programming that uses the Haskell programming language. You can study at your own pace. All the material and exercises are openly available.

The course is intended to be followed through the Course page, but in case the course page is down or you want an offline backup, the course material is also available in this repository (part1.html, part2.html).

Exercises

Exercises can be found under exercises/ directory. Make sure you have GHC 9.2.8 and Cabal installed through GHCup. To launch GHCi, run:

cabal repl

Note

The first time you run this command, it may take a while. It should be much faster on subsequent runs.

Exercises are Haskell source code files named Set1.hs, Set2.hs and so on. You complete the exercises by editing the file according to the instructions in the file. You can check your answers by running

ghci> :r
Ok, 66 modules loaded.
ghci> SetXTest.main

in GHCi. Remember to replace X with the number of the set you are working on.

See the material for more info.

Troubleshooting

Here are some fixes for common problems with cabal repl:

  • If you get an error like While building package zlib-0.6.2.3, you need to install the zlib library headers. The right command for Ubuntu is sudo apt install zlib1g-dev.

Reporting errors

If you notice an error in these materials, you can report it via an issue or pull request in this repository (see CONTRIBUTING.md)

About

Haskell MOOC University of Helsinki (Cabal/HLS compatible fork)

License:Other


Languages

Language:HTML 77.4%Language:Haskell 22.4%Language:CSS 0.1%