[Haskell-cafe] Deconstructing types
Sean Leather
leather at cs.uu.nl
Tue Sep 8 02:34:27 EDT 2009
> I don't know a thing about SYB, Data.Data, or Data.Typeable, mostly because
> I'm an efficiency fanatic. Nevertheless, I'd like to know whether or not
> there's a way to deconstruct a (mostly) arbitrary type, into tuples, unions,
> etc. using this framework. Any thoughts?
>
You can use the Template Haskell deriving in EMGM to get that structure
pretty efficiently.
http://www.cs.uu.nl/wiki/GenericProgramming/EMGM
http://hackage.haskell.org/package/emgm
The obligatory question is: why do you want it?
Sean
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://www.haskell.org/pipermail/haskell-cafe/attachments/20090908/1202abc8/attachment.html
More information about the Haskell-Cafe
mailing list