Errata: March 5, 2018
Thank you for purchasing Get Programming with Haskell. Please post any errors, other than those listed below, in the book's Author Online Forum. We'll compile a comprehensive list and publish it here for everyone's convenience.

Unless noted, all corrections have been made to electronic copies. These errors occur only in the book's first printing.

Page ix:

In the acknowledgements, Vitaly Bragilevski's name is misspelled in one instance.

Page 15:

GHCi>simple^2

should be

GHCI>simple 3

Page 31:

Aside from their role as a theoretical corner store of functional programming, they provide practical benefits.

should be

Aside from their role as a theoretical cornerstone of functional programming, they provide practical benefits.

Page 76, lesson 8:

There is a function with the following definition right before listing 8.1:

myLength xs = 1 + length (tail xs)

The definition should be

myLength xs = 1 + myLength (tail xs)

(This is correct in listing 8.1.)

Page 153, lesson 14:

In the sidebar, "Creating types with newtype" the following sentence:

"Any type that you can define with newtype, you can also define using data.

The word "data" should be in code font. This is also true of the last sentence:

"For simplicity, we'll stick to creating types with data throughout this book."

Page 158, lesson 15:

In listing 15.5

[FourLetterAlpha]

should be

[FourLetterAlphabet]

Page 188, lesson 17:

This is arguably not really an error, but technically, in Consider this:

"this" ++ " " ++ "is" ++ " " ++ "a" ++ " " ++ "bit" ++ "much"

should be

"this" ++ " " ++ "is" ++ " " ++ "a" ++ " " ++ "bit" ++ " " ++ "much"

Page 194, lesson 17:

Some missing back ticks snuck through here, as well as missing >s after the GHCi. After listing 17.7 we see the following code:

GHCi [1,2,3] ++ []
[1,2,3]
				
GHCi [1,2,3] <> []
[1,2,3]
				
GHCi [1,2,3]  mappend  mempty
[1,2,3]
The correct code follows:
GHCi> [1,2,3] ++ []
[1,2,3]
				
GHCi> [1,2,3] <> []
[1,2,3]
				
GHCi> [1,2,3]  `mappend`  mempty
[1,2,3]

Page 209, lesson 18:

The following code:

GHCi> :kind Map.Map Map.Map :: * -> * -> *

should be on separate lines as follows:

GHCi> :kind Map.Map 
Map.Map :: * -> * -> *

Page 340, lesson 27:

There's a missing space after the CHCi> prompt at the end of the page. The following:

GHCi>Map.lookup 1 htmlPartsDB
should be
GHCi> Map.lookup 1 htmlPartsDB	

Page 368, lesson 29:

The commas in listing 29.10 should be aligned with the opening bracked ([) as in the other listings on this page.