Exercises from the book 'Functional Programming in Scala' completed using Haskell