Haskell examples as per http://learnyouahaskell.com/