This and `pandoc` are solid proof that Haskell is a superb language for processing structured text (be it for compilation, or translation, or checking).
Or that people who are good at processing structured text tend to use/like Haskell.
(Not disagreeing with you, but the causal direction isn't immediately obvious to me.)
I do admire it, for it's grieovus errors.
It does not understand "nameref" amongst other flaws.