[Haskell-beginners] Type error in function binding