tagstream-conduit-0.5.5.3: streamlined html tag parser

Safe Haskell | None
Language | Haskell98

Text.HTML.TagStream.ByteString

Synopsis

- type Token = Token' ByteString
- type Attr = Attr' ByteString
- quoted :: Char -> Parser ByteString
- quotedOr :: Parser ByteString -> Parser ByteString
- attrValue :: Parser ByteString
- attrName :: Parser ByteString
- tagEnd :: Parser Bool
- attr :: Parser Attr
- attrs :: Parser ([Attr], Bool)
- comment :: Parser Token
- special :: Parser Token
- tag :: Parser Token
- incomplete :: Parser Token
- text :: Parser Token
- decodeEntitiesBS :: Monad m => Conduit Token m Token
- token :: Parser Token
- tillScriptEnd :: Token -> Parser [Token]
- html :: Parser [Token]
- decode :: ByteString -> Either String [Token]
- atLeast :: Int -> Parser ByteString -> Parser ByteString
- cond :: a -> a -> Bool -> a
- (||.) :: Applicative f => f Bool -> f Bool -> f Bool
- in2 :: Eq a => (a, a) -> a -> Bool
- in3 :: Eq a => (a, a, a) -> a -> Bool
- boolP :: Parser a -> Parser Bool
- maybeP :: Parser a -> Parser (Maybe a)
- cc :: [ByteString] -> Builder
- showToken :: (ByteString -> ByteString) -> Token -> Builder
- tokenStream :: Monad m => Conduit ByteString m Token

# Documentation

type Token = Token' ByteString #

type Attr = Attr' ByteString #

quoted :: Char -> Parser ByteString #

quotedOr :: Parser ByteString -> Parser ByteString #

attrValue :: Parser ByteString #

attrName :: Parser ByteString #

tagEnd :: Parser Bool #

attr :: Parser Attr #

attrs :: Parser ([Attr], Bool) #

comment :: Parser Token #

special :: Parser Token #

tag :: Parser Token #

incomplete :: Parser Token #

text :: Parser Token #

decodeEntitiesBS :: Monad m => Conduit Token m Token #

Decode the HTML entities e.g. `&amp;` in some text into `&`.

token :: Parser Token #

tillScriptEnd :: Token -> Parser [Token] #

html :: Parser [Token] #

decode :: ByteString -> Either String [Token] #

atLeast :: Int -> Parser ByteString -> Parser ByteString #

cond :: a -> a -> Bool -> a #

(||.) :: Applicative f => f Bool -> f Bool -> f Bool #

in2 :: Eq a => (a, a) -> a -> Bool #

in3 :: Eq a => (a, a, a) -> a -> Bool #

boolP :: Parser a -> Parser Bool #

maybeP :: Parser a -> Parser (Maybe a) #

cc :: [ByteString] -> Builder #

showToken :: (ByteString -> ByteString) -> Token -> Builder #

tokenStream :: Monad m => Conduit ByteString m Token #