Week 04

Last modified Feb. 9, 2026 1:58 PM by Michael Kirkedal Thomsen
Define an action adder :: IO () that reads a given number of integers from the keyboard, one per line, and displays their sum. For example:
Last modified Feb. 9, 2026 11:43 AM by Michael Kirkedal Thomsen
It is the fourth week of the course, and we will cover side effects in pure functional programming. We will be reading chapters 10 and 12 in Programming in Haskell by Graham Hutton, focusing on the Monad type class.
Last modified Feb. 10, 2026 9:35 AM by Michael Kirkedal Thomsen