[Haskell-beginners] How to override a type class instance ?

Johannes Joachim Engels johannes.engels at hft-stuttgart.de
Sat Oct 18 15:06:46 UTC 2014


> You usually wrap the data type in a newtype and use
> GeneralizedNewtypeDeriving to derive the classes you want to keep. Then
> write custom instances for the type classes you want to override.

thank you very much, this worked!

Best regards
Johannes


More information about the Beginners mailing list