[Haskell-beginners] Generate API implementations from XML
thomas at koch.ro
Sun Jan 4 11:26:54 UTC 2015
as written in my previous mail, I'm implementing a dbus interface in Haskell.
The interface definition is given in XML according to a given dtd.
For every dbus method one need to invoke
export :: Client -> ObjectPath -> [Method] -> IO ()
What would be a good way to autogenerate all this export calls and Method
instances? All necessary informations are given in the dbus spec xml.
One could write a script that writes Haskell code.
Or one could use template haskell that reads the xml file at compile time?
Do you know other examples to learn from that autogenerate Haskell code from
Thank you, Thomas Koch
More information about the Beginners