I'm playing around with Haskell and Happstack and I'm trying to output string-based HTML directly without using formal Happstack functions. Specifically I'm trying to output SVG directly into the page (with <svg> ... </svg>
) which comes from another module already fully generated as a string.
It's just a little toy program so I'm trying to avoid having to refactor the SVG generator module.
So my question is, in the following:
(f "<b> test </b>")
what is f
such that test will appear in bold in my browser?
If that's not reasonably possible, what would be a more structured approach?