Simon Peyton-Jones schrieb:
| One thing that might become a problem is that the "Scrap your
| boilerplate" approach seems to work only in GHC.

I don't think so. Other compilers might not support "deriving Data",
but you can always write the instance by hand.

How much boilerplate would be needed in that case?
As far as I understood the web site, it would be around a line of code per data type, independently of the number of HOFs that need to iterate over the data structures - is that correct?

I understand that Drift is a kind of preprocessor / code generator. Could it be used to generate the necessary boilerplate?

Regards,
Jo

_______________________________________________
Haskell-Cafe mailing list
Haskell-Cafe@haskell.org
http://www.haskell.org/mailman/listinfo/haskell-cafe

Reply via email to