|
|
|
|
Synopsis |
|
|
|
Documentation |
|
module Text.HTML.TagSoup |
|
|
The Tag parser, using Tag as the token.
|
|
|
A stateful tag parser
This is a new type alias to allow backwards compatibility with old code.
|
|
|
A type represent the TagOpen, any inner tags , and the TagClose.
|
|
|
Used to invoke parsing of Tags.
|
|
|
Simply run a stateful tag parser
|
|
|
openTag matches a TagOpen with the given name. It is not case sensitive.
|
|
|
maybeOpenTag will return Just the tag if it gets a TagOpen with he given name,
It will return Nothing otherwise.
It is not case sensitive.
|
|
|
either a Right TagOpen or a Left arbitary tag.
|
|
|
notOpenTag will match any tag which is not a TagOpen with the given name. It is not case sensitive.
|
|
|
allOpenTags will return all TagOpen with the given name.
It is not case sensitive.
|
|
|
wholeTag matches a TagOpen with the given name,
then all intervening tags,
until it reaches a TagClose with the given name.
It is not case sensitive.
|
|
|
maybeWholeTag will return Just the tag if it gets a WholeTag with he given name,
It will return Nothing otherwise.
It is not case sensitive.
|
|
|
either a Right WholeTag or a Left arbitary tag.
|
|
|
allWholeTags will return all WholeTag with the given name.
It is not case sensitive.
|
|
|
closeTag matches a TagClose with the given name. It is not case sensitive.
|
|
|
maybeCloseTag will return Just the tag if it gets a TagClose with he given name,
It will return Nothing otherwise.
It is not case sensitive.
|
|
|
either a Right TagClose or a Left arbitary tag.
|
|
|
notCloseTag will match any tag which is not a TagClose with the given name. It is not case sensitive.
|
|
|
allCloseTags will return all TagClose with the given name.
It is not case sensitive.
|
|
|
maybeP takes a parser, and becomes its Maybe equivalent -- returning Just if it matches, and Nothing if it doesn't.
|
|
|
allP takes a parser which returns a Maybe value, and returns a list of matching tokens.
|
|
|
eitherP takes a parser, and becomes its Either equivalent -- returning Right if it matches, and Left of anyToken if it doesn't.
|
|
Produced by Haddock version 2.4.2 |