@kopper when i did my thing in haskell i used this library for html https://hack...
sarah tonin :wlfBlep: @SRAZKVT@tech.lgbt
@kopper when i did my thing in haskell i used this library for html https://hackage.haskell.org/package/blaze-html it was nice and the dsl slotted right in (but haskell is generally quite close), seems similar ish to what you're going for for the html ?