Which Haskell XML library to use?

前端 未结 3 605
旧巷少年郎
旧巷少年郎 2020-12-07 13:26

I see that there is a few of XML processing libraries in Haskell.

  • HaXml seems to be the most popular (according to dons)
  • HXT seems to be the most adva
3条回答
  •  小蘑菇
    小蘑菇 (楼主)
    2020-12-07 13:35

    I would personally recommend HXT because it uses arrows, which are a very useful and powerful tool to learn, and an XML parsing library is the perfect use for arrows (they were first invented to solve various parsing problems that monads couldn't). Arrows are also starting to be used outside of pure functional programming, such as Arrowlets in JavaScript.

提交回复
热议问题