Safe Haskell | Safe |
---|---|
Language | Haskell2010 |
Text.HTML.Tree
- tokensToForest :: [Token] -> Either ParseTokenForestError (Forest Token)
- data ParseTokenForestError = ParseTokenForestErrorBracketMismatch PStack (Maybe Token)
- data PStack = PStack {
- _pstackToplevelSiblings :: Forest Token
- _pstackParents :: [(Token, Forest Token)]
- nonClosing :: [Text]
- tokensFromForest :: Forest Token -> [Token]
- tokensFromTree :: Tree Token -> [Token]
Constructing forests
tokensToForest :: [Token] -> Either ParseTokenForestError (Forest Token) Source #
data ParseTokenForestError Source #
Constructors
ParseTokenForestErrorBracketMismatch PStack (Maybe Token) |
Instances
Constructors
PStack | |
Fields
|
nonClosing :: [Text] Source #