xhtml-3000.2.0.1: An XHTML combinator libraryContentsIndex
Text.XHtml.Debug
Description
This module contains functions for displaying HTML as a pretty tree.
Synopsis
data HtmlTree
= HtmlLeaf Html
| HtmlNode Html [HtmlTree] Html
treeHtml :: [String] -> HtmlTree -> Html
treeColors :: [String]
debugHtml :: HTML a => a -> Html
Documentation
data 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
HtmlLeaf Html
HtmlNode Html [HtmlTree] Html
show/hide Instances
treeHtml :: [String] -> HtmlTree -> Html
treeColors :: [String]
debugHtml :: 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.
Produced by Haddock version 2.3.0