[Haskell-cafe] derivable type classes

Chris Eidhof chris at eidhof.nl
Tue Mar 23 07:20:18 EDT 2010

No. A solution for this (depending on the type class you want to derive) is Generic Programming. Using Generic Programming, you can define functions that work on the structure of the type.

For example, take a look at the regular package [1]. It provides all the functionality to write your own generic functions.


[1]: http://hackage.haskell.org/package/regular

On 23 mrt 2010, at 11:52, Ozgur Akgun wrote:

> Can a user define a derivable type class of her own? If yes, how?
> Cheers,
> -- 
> Ozgur Akgun
> _______________________________________________
> Haskell-Cafe mailing list
> Haskell-Cafe at haskell.org
> http://www.haskell.org/mailman/listinfo/haskell-cafe

More information about the Haskell-Cafe mailing list