[Haskell-cafe] XML <--> Haskell Data Structure using HXT

Han Joosten han.joosten.han at gmail.com
Thu Sep 11 13:38:18 UTC 2014


Thanks a lot for the pointers. They are spot on, and just what I was
looking for!

2014-09-11 14:14 GMT+02:00 Erik Hesselink <hesselink at gmail.com>:

> We use HXT's picklers, and have written a blog post about it [1]. I
> just saw that the code isn't formatted that great on our new blog,
> I'll see if we can fix that. We also wrote a library  [2] for
> generically deriving instances for picklers, which we also blogged
> about [3]. I hope that helps!
>
> Regards,
>
> Erik
>
> [1] http://engineering.silk.co/post/31921413529/haskell-data-types-and-xml
> [2] http://hackage.haskell.org/package/regular-xmlpickler
> [3]
> http://engineering.silk.co/post/31922245822/writing-a-generic-xml-pickler
>
> On Thu, Sep 11, 2014 at 1:57 PM, Han Joosten <han.joosten.han at gmail.com>
> 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?
> >
> > For those interested: Here is the Haskell Data Structure:
> >
> https://sourceforge.net/p/ampersand/code/HEAD/tree/trunk/src/lib/Database/Design/Ampersand/Core/ParseTree.hs
> >
> > Cheers & Thanks for reading!
> >
> > Han Joosten
> >
> > _______________________________________________
> > Haskell-Cafe mailing list
> > Haskell-Cafe at haskell.org
> > http://www.haskell.org/mailman/listinfo/haskell-cafe
> >
> _______________________________________________
> Haskell-Cafe mailing list
> Haskell-Cafe at haskell.org
> http://www.haskell.org/mailman/listinfo/haskell-cafe
>
> --
> You received this message because you are subscribed to a topic in the
> Google Groups "Haskell-cafe" group.
> To unsubscribe from this topic, visit
> https://groups.google.com/d/topic/haskell-cafe/YkePH-LbeSo/unsubscribe.
> To unsubscribe from this group and all its topics, send an email to
> haskell-cafe+unsubscribe at googlegroups.com.
> To post to this group, send email to haskell-cafe at googlegroups.com.
> Visit this group at http://groups.google.com/group/haskell-cafe.
> For more options, visit https://groups.google.com/d/optout.
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://www.haskell.org/pipermail/haskell-cafe/attachments/20140911/f1354bd4/attachment.html>


More information about the Haskell-Cafe mailing list