Example Haskell code as I'm following the Learn you a Haskell Book