Online edition of Haskell: the Craft of Functional Programming

I am pleased to announce that a fully revised edition of my Haskell book is available online and as a PDF, together with a supporting set of video lectures (links in reply below). The source code is in this github repo under a CC BY-NC-SA 4.0 licence, and any comments you might have or pull requests you would like to make will be gratefully received.

Simon T.

23 Likes

The PDF is here: haskellcraft/Book/root.pdf at main · simonjohnthompson/haskellcraft · GitHub and the video course here: https://www.youtube.com/playlist?list=PLqu19-ygE4ocMda7XgriK0BHL8vmlyKPU

11 Likes

Thank you Simon.

I went straight to Chapter 19. (Because you can never have too many Monad tutorials :wink: ) Hear, hear! to the advice in the last 3 paragraphs.

I was a bit puzzled by something in the section ‘Some standard functions and the Functor class’. (Is it out of date relative to the revisions to the Monad hierarchy? Is your LLM a bit over-zealous?) Control.Monad doesn’t define fmap (it’s imported); and it’s not in class Monad — the definition in Functor is later in the section.

1 Like

Thanks! That’s my bad, and thanks for spotting it. I’ll fix it over the weekend, and give the chapter another read through.

1 Like