Chalmers | GU

Course PM

TDA452/DIT142, Functional Programming, 7.5hp, HT 2016

Examiner: Thomas Hallgren
Course responsible: Thomas Hallgren
Course Assistants/supervisors: Fabian Ruch, Herbert Lange, Jonathan Johansson

Course content

In this course the student will learn about functional programming through the Haskell programming language. Concrete topics encountered in the course include:

Learning outcomes

After completion of the course the student should be able to

Course structure/course implementation

Examination forms

The examination of the course has two parts: To pass the course it is necessary to pass all home assignments and the exam. Your final grade is determined by your grade on the written exam only.

The grades awarded on the exam are 3, 4, 5 for Chalmers students, and G, VG for GU students. (G on the GU side corresponds to 3 or 4 on the Chalmers side; VG corresponds to a 5.)

Course literature

There is no course textbook. For those who like to follow a textbook I can recommend the following:

Changes from Last Year

There will be no significant changes from last year.


Lectures and self-study exercises

Monday 13.15 (HC2) Thursday 10.00 (HC3)
Self-study exercises
Week 1 Intro to Haskell. Tuples & lists.
Types. [Intro.hs]
Data types. [DataTypes.hs].
Getting started with Haskell
Week 2 Working with lists
(recursion, pattern matching)
Higher Order Functions.
Recursion and data types
Week 3 Input/Output. [countWords.hs,
InputOutput.hs, Hangman.hs]
Overloading and Type Classes.
[Overloading.hs, ExhaustiveTesting.hs]
QuickCheck test data generators.
Lists and List Comprehensions
Week 4 Abstract data types. [Queue.hs]
Recursive data types. [ArithmeticQuiz.hs]
[ParsingExamples.hs, Parsing.hs]
IO, Test Data and Properties
Week 5 Monads. Symbolic Expressions.
Laziness. [Laziness.hs, Fib.hs]
Recursive data types
Week 6 Web/Gui programming with Haste
and WebFudgets. [hello3.hs,
WebFudgetsDemo.hs, WebFudgets.hs]
Tying up loose ends.
Questions and answers. [Set.hs]
Week 7 No lectures (Project work!)

Lab assignments

LabPartSubmission deadlineFinal deadline
Lab 1 Wednesday, Week 1
Friday, Week 2
Lab 2 A Wednesday, Week 2
Friday, Week 4
BWednesday, Week 3
Lab 3 AWednesday, Week 4
Friday, Week 6
BWednesday, Week 5
Lab 4 ProposalMonday, Week 6
Thursday, Week 6
Project Wednesday, Week 7
Friday, 2017-01-13

Data- och informationsteknik
412 96 Göteborg
Telefon: 031-772 10 00 (CTH) / 031-786 00 00 (GU)