tagsoup-0.7: Parsing and extracting information from (possibly malformed) HTML documentsContentsIndex
Text.HTML.TagSoup.Tree
Description
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.
Synopsis
data TagTree
= TagBranch String [Attribute] [TagTree]
| TagLeaf Tag
tagTree :: [Tag] -> [TagTree]
flattenTree :: [TagTree] -> [Tag]
transformTree :: (TagTree -> [TagTree]) -> [TagTree] -> [TagTree]
universeTree :: [TagTree] -> [TagTree]
Documentation
data TagTree
Constructors
TagBranch String [Attribute] [TagTree]
TagLeaf Tag
show/hide Instances
tagTree :: [Tag] -> [TagTree]
Convert a list of tags into a tree. This version is not lazy at all, that is saved for version 2.
flattenTree :: [TagTree] -> [Tag]
transformTree :: (TagTree -> [TagTree]) -> [TagTree] -> [TagTree]
universeTree :: [TagTree] -> [TagTree]
Produced by Haddock version 0.8