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.4.1.0 · Text.XHtml.Debug
:: a typeCtrl KGHC 10.0.0.20260917 · lts/ghc-10.0.x · 8174fa4 · 2026-10-11
Modulexhtml-3000.4.1.0Haskell2010
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.4.1.0 · 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.