HORIZON HASKELLDocslts/ghc-10.0.x04404a62026-10-19Search packagesCtrl K
Theme: |

GHC 10.0.0.20260917 · lts/ghc-10.0.x · 04404a6 · 2026-10-19

Modulexhtml-3000.4.1.0Haskell2010

Text.XHtml.Debug

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

Synopsis
  • 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.