| Safe Haskell | None | 
|---|---|
| Language | Haskell98 | 
Text.HTML.TagSoup.Tree.Util
Description
Utility functions for TagSoup's TagTree.
- children :: TagTree str -> [TagTree str]
 - descendants :: TagTree str -> [TagTree str]
 - withTagTree :: (str -> [Attribute str] -> [TagTree str] -> a) -> (Tag str -> a) -> TagTree str -> a
 - isTagBranch :: TagTree str -> Bool
 - isTagLeaf :: TagTree str -> Bool
 - tagBranchName :: TagTree str -> str
 - tagBranchAttrs :: TagTree str -> [Attribute str]
 - tagBranchTrees :: TagTree str -> [TagTree str]
 - fromTagLeaf :: TagTree str -> Tag str
 - maybeTagBranchName :: TagTree str -> Maybe str
 - maybeTagBranchAttrs :: TagTree str -> Maybe [Attribute str]
 - maybeTagBranchTrees :: TagTree str -> Maybe [TagTree str]
 - maybeTagLeafTag :: TagTree str -> Maybe (Tag str)
 - hasTagBranchName :: Eq str => str -> TagTree str -> Bool
 - hasTagBranchAttr :: Eq str => str -> TagTree str -> Bool
 - findTagBranchAttr :: Eq str => str -> TagTree str -> Maybe str
 - tagTree' :: StringLike str => [Tag str] -> [TagTree str]
 - htmlRoot :: [TagTree String] -> TagTree String
 
Documentation
descendants :: TagTree str -> [TagTree str] Source #
Returns all immediate children, the children of these children etc. for a TagTree.
withTagTree :: (str -> [Attribute str] -> [TagTree str] -> a) -> (Tag str -> a) -> TagTree str -> a Source #
Case analysis for TagTree values.
tagBranchName :: TagTree str -> str Source #
tagBranchAttrs :: TagTree str -> [Attribute str] Source #
tagBranchTrees :: TagTree str -> [TagTree str] Source #
fromTagLeaf :: TagTree str -> Tag str Source #
maybeTagBranchName :: TagTree str -> Maybe str Source #