tagstream-conduit-0.5.6: streamlined html tag parser
Safe HaskellNone
LanguageHaskell2010

Text.HTML.TagStream.Text

Synopsis

Documentation

type Token = Token' Text Source #

type Attr = Attr' Text Source #

quoted :: Char -> Parser Text Source #

quotedOr :: Parser Text -> Parser Text Source #

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

decodeEntitiesText :: Monad m => Conduit Token m Token Source #

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

decode :: Text -> Either String [Token] Source #

atLeast :: Int -> Parser Text -> Parser Text Source #

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

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

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

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

boolP :: Parser a -> Parser Bool Source #

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

cc :: [Text] -> Builder Source #

showToken :: (Text -> Text) -> Token -> Builder Source #

tokenStream :: MonadFail m => Conduit Text m Token Source #

tokenStreamBS :: (MonadThrow m, MonadFail m) => Conduit ByteString m Token Source #

like tokenStream, but it process ByteString input, decode it according to xml version tag.

Only support utf-8 and iso8859 for now.