xhtml-3000.0.2.2: An XHTML combinator library

Text.XHtml.Debug

Description

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

Synopsis

Documentation

data HtmlTree Source

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.

Instances

debugHtml :: HTML a => a -> HtmlSource

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