[Haskell-beginners] Problem with typeclass