[Haskell-cafe] derivable type classes
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 . It provides all the functionality to write your own generic functions.
On 23 mrt 2010, at 11:52, Ozgur Akgun wrote:
> Can a user define a derivable type class of her own? If yes, how?
> Ozgur Akgun
> Haskell-Cafe mailing list
> Haskell-Cafe at haskell.org
More information about the Haskell-Cafe