top of page
Errata

 

To the third printing of the first edition, June 2023:

To the second printing of the first edition, May 2020:

On page 54, the type of (<=) should be Ord a => a -> a -> bool not Ord a => a -> a -> a as printed.

In Chapter 8, Question 2, for "returns Nothing if the key is already present" read "returns Nothing if the key is not already present"

To the first printing of the first edition, October 2019:

Due to a bug / design-choice, the numerical typeclass hierarchy in GHC differs from the Haskell Report 2010, in that Eq is not a superclass of Num. (Show is not either, but this does not affect the book).  This is described in the GHC documentation.

 

Haskell from the Very Beginning, which previously used the Haskell Report definitions, has been updated to use the GHC ones instead.

 

This affects the last paragraph of Chapter 2, Question 12 of Chapter 2, and the typeclass hierarchy diagrams in Chapter 12 and its answers.

Updates have been sent to existing customers of PDF and kindle ebooks. Owners of the printed book, please contact us for an updated PDF copy containing the corrections.

bottom of page