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.10.3 · lts/ghc-9.10.x · 248f8f0 · 2026-10-05
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.