Thinking Functionally with Haskell
This book, published in October 2014 with Cambridge University Press, is essentially a third edition of Richard Bird's classic text on functional programming.
Here's the publisher's blurb from the back cover:
Richard Bird is famed for the clarity and rigour of his writing. His new textbook, which introduces functional programming to students, emphasises fundamental techniques for reasoning mathematically about functional programs. By studying the underlying equational laws, the book enables students to apply calculational reasoning to their programs, both to understand their properties and to make them more efficient. The book has been designed to fit a first- or second-year undergraduate course and is a thorough overhaul and replacement of his earlier textbooks. It features case studies in Sudoku and pretty-printing, and over 100 carefully selected exercises with solutions. This engaging text will be welcomed by students and teachers alike.The book can be purchased online.
Materials
- There is a list of errata.
- The programs from the book are available, either by chapter (1, 2, 3, 4, 5, 7, 8, 9, 10, 11, 12; there are no programs for Chapter 6) or in one big zip file.
If you have any queries about the book, please write to tfwh@cs.ox.ac.uk.
Previous editions
The first edition was titled Introduction to Functional Programming, and was co-authored with Phil Wadler. It was published in 1988 in the Prentice Hall International Series in Computer Science, ISBN 0-13-484189-1 in hardback and 0-13-484197-2 in paperback. It is long out of print.
The second edition was titled Introduction to Functional Programming using Haskell, published in 1998 again by Prentice Hall, ISBN 0-13-484346-0. It is still in print at the time of writing, and available for purchase from Amazon.
- An errata list is available.
- Answers to exercises in the first three chapters are available on request.
- The program described in Chapter 12 is available.