haxr - marshalling of Variants in Records

Johannes Waldmann waldmann at imn.htwk-leipzig.de
Mon Dec 5 13:27:57 EST 2005

Any ideas for automatically marshalling
record types with variants for XML-RPC?
We need to put the "tag" information somewhere,
perhaps as a separate component of the TStruct
(but how should it be called).

Of course we can define what we want as long as client
and server use haxr, but in other cases?
Perhaps we should use some more general scheme (SOAP) then.

If the Haskell app is the defining side,
I'd love to just "derive Haskell2Xml" for my data,
and then I'd want a "haskell2scheme" (not: DTD)
so that the Java side can use a Schema->Java compiler (like xjc).

On the other hand if I have to use a given XML schema,
I want some "xhc" tool (Schema->Haskell).

Perhaps some of these projects are already out there?
-- Johannes Waldmann -- Tel/Fax (0341) 3076 6479/80 --
---- http://www.imn.htwk-leipzig.de/~waldmann/ -------

More information about the Libraries mailing list