[Template-haskell] Check whether item is instance of class
S. Alexander Jacobson
alex at alexjacobson.com
Mon Mar 7 22:04:51 EST 2005
I plan to write an XML serialization routine and would like to have
per field behavior depend on whether the datatype of the field
implements ToElement. In particular I want things that do not derive
ToElement to be rendered as attributes and things that do implement
ToElement to be rendered as child nodes.
Is that possible using template haskell or do I have to add some sort
of naming convention that signals it?
S. Alexander Jacobson tel:917-770-6565 http://alexjacobson.com
More information about the template-haskell