Programming Fundamentals 3
An Introduction to Functional Programming in Haskell
- Teacher
- Yannick Zakowski
- Teaching assistant
- Matthew Wileman
Lectures
-
10:15Lecture 1: First steps with Haskell Room MSA-3.010
- Material
lecture01.pdf
Topics- static typing
- pattern matching
- guards
- Material
-
14:00Lecture 2: Recursing over lists Room MSA-3.520
- Material
lecture02.pdf
Topics- recursion
- pattern matching on lists
- list comprehensions
- Material
-
14:00Lecture 3: Higher-order programming Room MSA-4.530
- Material
lecture03.pdf
Topics- polymorphism
map,filterwhere,case- lambdas
- Material
-
14:00Lecture 4: Building functions from functions Room MSA-4.510
- Material
lecture04.pdf
Topics- function composition
foldr,foldl
- Material
-
14:00Lecture 5:User-defined data-types Room MSA-4.510
- Material
lecture05.pdf
Topics- user-defined types, enum, recursive types
- Material
-
14:00Lecture 6:Type Classes Room MSA-3.510
- Material
lecture06.pdf
Topics- classes, instances, class constraints
- Material
-
14:00
-
14:00Lecture 8: On board: Midterm Correction and Monads Recap Room MSA-4.510Topics
- revisions
-
14:00Lecture 9: Monads: Gallery of Examples Room MSA-4.510
- Material
eval_state.hs
Topics- maybe monad, state monad, list monad
- Material
-
14:00Lecture 10: Abstract DataTypes Room MSA-3.010
- Material
lecture10.pdf - Code template
template.zip - Code filled
full.zip
Topics- abstract data-type, interface, module abstraction, invariant, sets
- Material
-
14:00Lecture 11: Maps and Graphs Room MSA-3.500
- Material
lecture11.pdf - Code template
Graph-template.hs - Code filled
Graph.hs
Topics- maps, graphs
- Material
Lab sessions
-
8:30Lab 1: Your first Haskell programs Room MSA-3.500
- Setting up your Haskell installation
setup.pdf - Material
lab01.pdf - Solutions
lab01-solutions.hs
- Setting up your Haskell installation
-
8:30
-
8:30Lab 3: Recursion, list comprehension, Higher-order functions Room MSA-3.370
- Material
lab03.pdf - Solutions
lab03-solutions.hs
- Material
-
10:15
-
10:15
-
10:15
-
10:15Lab 7: No lab, it's midterm week! Room MSA-3.370
- Material
midterm1.pdf - Solutions
midterm1-solutions.hs
- Material
-
10:15
-
8:30Lab 9: Monads and Functors: More Workout Room MSA-3.040
- Material
lab09.pdf - Solutions
lab09-solutions.hs
- Material
-
8:30
-
10:15
Bibliography
- Learn You a Haskell for Great Good! by Miran Lipovača
- Programming in Haskell, 2nd Edition, by Graham Hutton
Important dates
-
First mid-term
-
Second mid-term
-
10:00-12:00Final exam Room MSA-3.510