[Haskell] How to close a type class