[Haskell-cafe] XML <--> Haskell Data Structure using HXT
Michael Orlitzky
michael at orlitzky.com
Thu Sep 11 16:31:35 UTC 2014
On 09/11/2014 07:57 AM, Han Joosten wrote:
> I would like to write code to enable importing data to and fro from a
> Haskell data structure. It makes sense to have some XSD or so that
> specifies how the XML should be structured. The HDS is already in place.
> I have been looking into hte HXT library and I think it could be used
> for this job. However, I am not familiar (yet) with Arrows and the like.
> Also the use of picklers is new to me. It would help me a lot if someone
> has a neat example of how coversion between XML and some Haskell data
> structure can be implemented in het HXT-style.
> Do such examples exist? Where can I find them?
I use these extensively in,
http://hackage.haskell.org/package/htsn-import
Each module under the TSN.XML namespace is basically a big XML <->
Haskell converter along with some database stuff.
More information about the Haskell-Cafe
mailing list