Exercises from the book _Beginning Haskell_