Skip to main content

Haskell Workbook for A Level -- Writing Functional Programs

Downloaded: 283

Last edit: 10 January 2024

Resource Type Worksheets and Activities, Lesson Plans, Starter / Plenary
Curriculum Topic Computational Thinking, Programming
English Key Stage 16-18 Years (KS5)
Scottish Curriculum Levels S6 Advanced Higher (17-18 years)

Based on s thurgood's excellent original worksheet -- extended to include more exercises and references to use of repl.it as a Haskell interpreter. Some .hs code provides templates/answers.

Using Haskell as a practical introduction to the concepts of Writing Functional Programs. Mixture of prediction activities, written questions/answers, and programming exercises.

  • Section 1: Trying out Haskell
  • Section 2: Functions in Haskell
  • Section 3: Lists & Tuples in Haskell
  • Section 4: Functions with Lists, using (x:xs) pattern matching
  • Section 5: Higher-order functions (filter, map, and fold*)
  • Section 6: Function Composition

The next step is a functional paradigms workbook that delves deeper into functional programming theory: Functional Programming Paradigm (A Level) -- Workbook with Haskell (this resource can also be found on the CAS website).

All feedback welcome.

Level: (Advanced A Level)

Duration: (Approx. six lessons + homework)

Teaches: (Based around AQA 4.12.2 Writing Functional Programs: Haskell/Python comparison; functions; lists; pattern matching; higher-order functions (map, filter, foldl); function composition)

Edit history

Nela Brockington | 10.01.24

Update commenting settings.

Nela Brockington | 10.01.24

Visibility settings updated.

Nela Brockington | 12.04.22

Edited description, removed broken links.

Nela Brockington | 12.04.22

Fixed broken link in description.

Nela Brockington | 12.04.22

Added additional information about Key Stage and Exam Board.

Discuss: Haskell Workbook for A Level -- Writing Functional Programs (2021-01-31)

Please login to post a comment

Unlock