[Haskell-beginners] type problems with my little code