[Haskell] type class does not compile