-- Hoogle documentation, generated by Haddock -- See Hoogle, http://www.haskell.org/hoogle/ -- | An "attoparsec"-based HTML tokenizer -- @package html-tokenizer @version 0.4.0.0 module HTMLTokenizer -- | An HTML token. data Token -- | A Doctype declaration. Token_Doctype :: Text -> Token -- | An opening tag. Token_OpeningTag :: OpeningTag -> Token -- | A closing tag. Token_ClosingTag :: Identifier -> Token -- | A text between tags. Token_Text :: Text -> Token -- | Contents of a comment. Token_Comment :: Text -> Token -- | An opening tag name, attributes and whether it is closed. type OpeningTag = (Identifier, [Attribute], Bool) -- | A case-insensitive identifier. data Identifier Identifier :: (Maybe (CI Text)) -> (CI Text) -> Identifier -- | A tag attribute identifier and a value. type Attribute = (Identifier, Maybe Text) -- | A token parser. -- -- Does not decode entities. token :: Parser Token instance Typeable Identifier instance Typeable Token instance Show Identifier instance Ord Identifier instance Eq Identifier instance Generic Identifier instance Data Identifier instance Show Token instance Ord Token instance Eq Token instance Generic Token instance Data Token instance Datatype D1Identifier instance Constructor C1_0Identifier instance Datatype D1Token instance Constructor C1_0Token instance Constructor C1_1Token instance Constructor C1_2Token instance Constructor C1_3Token instance Constructor C1_4Token instance IsString Identifier