[Haskell-cafe] configurable mapping between data declarations and given XML schema?
hesselink at gmail.com
Mon May 30 10:53:05 UTC 2016
Have you looked at the xml picklers from the hxt package ? They
allow you to define matching parsers and printers from XML, which
sounds exactly like your use case. You can define them manually, or
derive (parts of) them using the generic-xmlpickler package .
On 30 May 2016 at 12:04, Johannes Waldmann
<johannes.waldmann at htwk-leipzig.de> wrote:
> Dear Cafe,
> I have a legacy XML schema, and some Haskell data declarations.
> I want to map bidirectionally between XML documents and data.
> I absolutely cannot change the schema. I could change the data
> declarations, but it would not help much, since I don't think
> there is any form of declaring data that would allow me
> to derive the transformations generically.
> So, I have a mess of ad-hoc transformations.
> What could be done about this?
> I think I need "generic with customization".
> More detail: https://github.com/jwaldmann/haskell-tpdb/issues/16
> Comments appreciated.
> - J.W.
> Haskell-Cafe mailing list
> Haskell-Cafe at haskell.org
More information about the Haskell-Cafe