*** An extensively updated and expanded new edition of the book was published on 1st September 2016. ***

*** This version (yellow cover, 2007) is now out-of-date, and all readers and instructors should use the new edition (blue cover, 2016) instead. ***



Book Cover

Programming in Haskell

Graham Hutton, University of Nottingham
Cambridge University Press, 2007

Paperback: ISBN 9780521692694; Hardback: ISBN 9780521871723;
eBook: ISBN 9780511292187; Kindle: ASIN: B001FSKE6Q.

Translations into Korean and Japanese are also available.

Description

Haskell is one of the leading languages for teaching functional programming, enabling students to write simpler and cleaner code, and to learn how to structure and reason about programs. This introduction is ideal for beginners: it requires no previous programming experience and all concepts are explained from first principles via carefully chosen examples. Each chapter includes exercises that range from the straightforward to extended projects, plus suggestions for further reading on more advanced topics. The author is a leading Haskell researcher who is well-known for his teaching skills, and the book includes material and examples drawn from the author's own research. The presentation is clear and simple, and benefits from having been refined and class-tested over many years. The result is a text that can be used with courses, or for self-learning. Additional features include: freely available powerpoint slides, lecture videos and Haskell code.

Reviews

In depth technical reviews:

Additional reviews:

Slides

Powerpoint slides that cover the main points from each chapter:

  1. Introduction
  2. First steps
  3. Types and classes
  4. Defining functions
  5. List comprehensions
  6. Recursive functions
  7. Higher-order functions
  8. Functional parsers
  9. Interactive programs
  10. Declaring types and classes
  11. The countdown problem
  12. Lazy evaluation
  13. Reasoning about programs

These slides may be freely used or modified for any educational or training purpose, provided that I am acknowledged as the original author.

Videos

Video lectures using the above powerpoint slides for each chapter were given by Erik Meijer on Microsoft's Channel 9:
  1. Introduction
  2. First steps
  3. Types and classes
  4. Defining functions
  5. List comprehensions
  6. Recursive functions
  7. Higher-order functions
  8. Functional parsers
  9. Interactive programs
  10. Declaring types and classes
  11. The countdown problem (guest lecture by myself)
  12. Lazy evaluation
  13. Reasoning about programs

These videos have been very popular, being followed by 60,000 developers and receiving more than 1 million lecture downloads.

Code

Haskell code for each of the extended examples:

Errata

All known errata are listed here. Please contact the author if you spot any further issues.