tagsoup-0.10: Parsing and extracting information from (possibly malformed) HTML/XML documentsSource codeContentsIndex
Text.HTML.TagSoup.Tree
Description

NOTE: This module is preliminary and may change at a future date. If you wish to use its features, please email me and I will help evolve an API that suits you.

This module is intended to help converting a list of tags into a tree of tags.

Synopsis
data TagTree str
= TagBranch str [Attribute str] [TagTree str]
| TagLeaf (Tag str)
tagTree :: Eq str => [Tag str] -> [TagTree str]
flattenTree :: [TagTree str] -> [Tag str]
transformTree :: (TagTree str -> [TagTree str]) -> [TagTree str] -> [TagTree str]
universeTree :: [TagTree str] -> [TagTree str]
Documentation
data TagTree str Source
Constructors
TagBranch str [Attribute str] [TagTree str]
TagLeaf (Tag str)
show/hide Instances
tagTree :: Eq str => [Tag str] -> [TagTree str]Source
Convert a list of tags into a tree. This version is not lazy at all, that is saved for version 2.
flattenTree :: [TagTree str] -> [Tag str]Source
transformTree :: (TagTree str -> [TagTree str]) -> [TagTree str] -> [TagTree str]Source
universeTree :: [TagTree str] -> [TagTree str]Source
Produced by Haddock version 2.4.2