Functional Programming in Haskell
This is an introductory course on functional programming in Haskell. It is designed for first year computing students in Nottingham, but the lectures are also made available on YouTube.
The course is based on part I of Programming in Haskell.
It is recommended for following the course, to purchase the below textbook, watch the youtube videos, slides are provided below to follow along, and then to try out to programming examples with resources below as well.
All resources and links are provided at the bottom of the page.
All credit goes to the Graham Hutton, University of Nottingham.
What This Course Covers
The course is based on Part I of Graham Hutton’s textbook Programming in Haskell and introduces foundational topics such as:
- Basic syntax and functions
- Recursion and higher-order functions
- Custom data types and pattern matching
- List comprehensions
- Lazy evaluation and interactive programs
The full lecture series is available free on YouTube, accompanied by slides and example code.
Step-by-Step Learning Path
Step 1: Bookmark the Main Page
This is your hub. It includes the video lectures, downloadable slides, and example code.
Step 2: Watch Lectures in Order
Each lecture builds on the last. Follow the sequence exactly:
- Start with Lecture 1 (Course Overview + Demo)
- Work through Lectures 2–17, one at a time
- Take notes, pause often, and try coding along
Step 3: Read the Book (Optional but Helpful)
Programming in Haskell (2nd edition) fills in background and provides exercises not covered in the videos.
Use it to:
- Reinforce concepts
- Get deeper explanations
- Practice with written exercises
Step 4: Code Along with Examples
Download the example code (linked on the course site) and run them in your local Haskell environment or an online interpreter like replit or Try Haskell.
Experiment with:
- Modifying functions
- Creating your own recursive patterns
- Implementing mini-projects like the Countdown game
Step 5: Do the Exercises
Some lectures include hands-on exercises (especially Recursion and IO). Try solving them yourself before checking any solutions.
Tools You’ll Need
- GHC (Glasgow Haskell Compiler)
Install from haskell.org - Editor: Use VS Code with the Haskell extension or any editor that supports Haskell
- Hoogle: Use Hoogle to search for functions, types, and documentation
Tips for Success
- Watch each video at 1x speed—these are concept-heavy lectures
- Type everything manually, even if code is provided
- Don’t skip recursion or lazy evaluation—they're core to Haskell
- Use GitHub to track your progress or share your code
Bonus: What to Do After This Course
Once you’ve finished:
- Continue to Part II of the textbook (monads, functors, etc.)
- Explore other Haskell resources like:
- Learn You a Haskell for Great Good
- Real World Haskell
- Haskell Programming from First Principles
Lectures
- Course Overview
- Haskell Demo
- Introduction
- First Steps
- Types and Classes
- Defining Functions
- List Comprehensions
- Recursive Functions
- Exercises on Recursion
- Higher-Order Functions
- How To Think Recursively
- Declaring Types and Classes
- The Countdown Problem
- Interactive Programming
- Exercises on Interaction
- Lazy Evaluation
- Course Wrap Up
Additional material:
Resources
- Course moodle page (internal version of this page)
- Haskell home page (for all things Haskell)
- GHC (the Glasgow Haskell Compiler)
- Hoogle (for searching the libraries)