[Haskell-beginners] Working out the types