
23 Mar
2010
23 Mar
'10
7:20 a.m.
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. -chris [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@haskell.org http://www.haskell.org/mailman/listinfo/haskell-cafe