[Haskell-beginners] Problems with typeclasses instances