I'd be nice if I can just monadically construct RSS feeds (à la: reflex-dom, lucid), rather than build it "manually" using records and what not. I'm somewhat surprised that the lucid library does not already do this, in a general fashion (it seems hardcoded to work with HTML5 only).
What are some decent libraries dealing with XML in Haskell? Specifically constructing XML documents (as in the case of RSS feeds)?
/cc @Joel McCracken
I'd be nice if I can just monadically construct RSS feeds (à la: reflex-dom, lucid), rather than build it "manually" using records and what not. I'm somewhat surprised that the lucid library does not already do this, in a general fashion (it seems hardcoded to work with HTML5 only).
I like
xmlgen
although the output format is weird.https://www.stackage.org/lts-14.25/package/xmlgen-0.6.2.2
https://github.com/Southern-Exposure-Seed-Exchange/southernexposure.com/blob/cd5ef14086a6673cbb1ddeecdd1bcf0be1682989/server/src/StoneEdge.hs#L265-L278
https://github.com/Southern-Exposure-Seed-Exchange/southernexposure.com/blob/cd5ef14086a6673cbb1ddeecdd1bcf0be1682989/server/src/MerchantFeed.hs#L35-L46
I suppose one could also simply create a
lucid-rss
in the style of https://hackage.haskell.org/package/lucid-svgI've used a little bit of this https://www.yesodweb.com/book/xml
so, the xml quasiquoter
it worked
i feel like it depends a bit, how "programmatically" are you doing it? would it be appropriate to use a template system?