The basic idea is you render your structure in the form of this tree, and then use treeHtml to turn it into a Html object with the structure explicit.
Instances1HTML
HTML HtmlTreeDefined in xhtml-3000.2.2.1 · Text.XHtml.Debug
:: a typeCtrl KGHC 9.14.1 · lts/ghc-9.14.x · b2f3bfd · 2026-10-11
Modulexhtml-3000.2.2.1Haskell2010
This module contains functions for displaying HTML as a pretty tree.
The basic idea is you render your structure in the form of this tree, and then use treeHtml to turn it into a Html object with the structure explicit.
HTML HtmlTreeDefined in xhtml-3000.2.2.1 · Text.XHtml.DebugThis uses the above tree rendering function, and displays the Html as a tree structure, allowing debugging of what is actually getting produced.