Safe Haskell | Safe |
---|---|
Language | Haskell2010 |
Synopsis
- 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 #
Instances
Eq ParseTokenForestError Source # | |
Defined in Text.HTML.Tree (==) :: ParseTokenForestError -> ParseTokenForestError -> Bool # (/=) :: ParseTokenForestError -> ParseTokenForestError -> Bool # | |
Show ParseTokenForestError Source # | |
Defined in Text.HTML.Tree showsPrec :: Int -> ParseTokenForestError -> ShowS # show :: ParseTokenForestError -> String # showList :: [ParseTokenForestError] -> ShowS # |
PStack | |
|
nonClosing :: [Text] Source #