
24 Mar
2010
24 Mar
'10
1:16 p.m.
Thanks for the pointers again - you are of great help every time!
On 23 March 2010 17:44, Josef Svenningsson
On Tue, Mar 23, 2010 at 11:52 AM, Ozgur Akgun
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:
http://www.haskell.org/ghc/docs/latest/html/users_guide/generic-classes.html
Hth,
Josef
-- Ozgur Akgun