HORIZON HASKELLDocslts/ghc-10.0.x8174fa42026-10-11Search names, modules, packages, or :: a typeCtrl K

GHC 10.0.0.20260917 · lts/ghc-10.0.x · 8174fa4 · 2026-10-11

Modulexhtml-3000.4.1.0Haskell2010

Text.XHtml.Debug

This module contains functions for displaying HTML as a pretty tree.

  • 1 type
  • 3 values
  • Packagexhtml-3000.4.1.0
  • Exports4
  • LanguageHaskell2010
  • LicenceBSD-3-Clause
  • SourceDebug.hs
datadata HtmlTree
#

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.

Constructors

Instances1HTML
  • HTML HtmlTreeDefined in xhtml-3000.4.1.0 · Text.XHtml.Debug
valuetreeHtml :: [Text] -> HtmlTree -> Html
#
valuetreeColors :: [Text]
#
valuedebugHtml :: HTML a => a -> Html
#

This uses the above tree rendering function, and displays the Html as a tree structure, allowing debugging of what is actually getting produced.