[Haskell] boilerplate boilerplate

Claus Reinke claus.reinke at talk21.com
Wed May 23 19:18:33 EDT 2007


> Actually independent deriving would help a lot but am not sure of the 
> syntax. 
> 
> could it be something like
> 
>   derive (Ord,Eq,Read,Show,Typeable) (BlogEntry Name Title Body Emai)

according to the most recent status report, the syntax is not quite
settled yet, so what is in ghc head might still change. more info here:

    http://haskell.org/haskellwiki/GHC/StandAloneDeriving
 
> Perhaps this is what Neil Mitchell was suggesting with Derive that I was 
> not understanding.  If I can use derive like this without a 
> pre-processor that would be very nice.

there are various different methods to help with deriving. 
i think Neil was referring to Data.Derive:

    http://www-users.cs.york.ac.uk/~ndm/derive/

claus





More information about the Haskell mailing list