[Haskell-cafe] derivable type classes
josef.svenningsson at gmail.com
Tue Mar 23 13:44:47 EDT 2010
On Tue, Mar 23, 2010 at 11:52 AM, Ozgur Akgun <ozgurakgun at gmail.com> wrote:
> Can a user define a derivable type class of her own? If yes, how?
GHC has a feature which lets you define classes such that making an
instance of them is as easy as deriving. It's called Generic classes.
See GHC's documentation for the details:
More information about the Haskell-Cafe