list-t-html-parser-0.1.0.0: Streaming HTML parser

Safe HaskellNone
LanguageHaskell2010

ListT.HTMLParser

Contents

Synopsis

Documentation

data Parser m a Source

A backtracking HTML parser.

Instances

data ErrorDetails Source

Constructors

UnexpectedToken

Unexpected token

EOI

End of input

run :: Monad m => Parser m a -> ListT m Token -> m (Either Error a) Source

Run a parser on a stream of HTML tokens, consuming only as many as needed.

Parsers

Combinators

manyTill :: Monad m => Parser m a -> Parser m b -> Parser m ([a], b) Source

skipTill :: Monad m => Parser m a -> Parser m a Source

Skip any tokens until the provided parser is satisfied.