All the code are under books/hpffp directory
-
Chapter 8
- 8.6 Exercises
- 8.6 WordNumber An exercise for Data.List that converts numbers into words.
-
- 9.12 Cipher Module
-
- 11.18 Phone Module
-
- 12.5 Unfold Module
-
Chapter 13
- 13.9 The Hangman Game
- 13.14.1 The Cipher
- 13.14.2 Palindrome Check
-
Chapter 14 - Tests
- 14.3 Test.Hspec
- 14.4 Test.QuickCheck
- 14.5 - Morse Code
- 14.6 Arbitrary Instances
- 14.7 Chapter Exercises
-
Chapter 15 - Monoid, Supergroup
- 15.10 Execise: Optional Monoid
- 15.11 Madness, a Mad Lib
- 15.12
- Monoid properties with QuickCheck
- Testing QuickCheck patience with invalid Monoid
- Maybe Another Monoid
- Example on how to create Arbitrary instance with parameterized type