Safe Haskell | None |
---|---|
Language | Haskell2010 |
Text.HTML.DOM
Synopsis
- eventConduit :: forall (m :: Type -> Type). Monad m => ConduitT ByteString Event m ()
- sinkDoc :: forall (m :: Type -> Type) o. MonadThrow m => ConduitT ByteString o m Document
- readFile :: FilePath -> IO Document
- parseLBS :: ByteString -> Document
- parseBSChunks :: [ByteString] -> Document
- eventConduitText :: forall (m :: Type -> Type). Monad m => ConduitT Text Event m ()
- sinkDocText :: forall (m :: Type -> Type) o. MonadThrow m => ConduitT Text o m Document
- parseLT :: Text -> Document
- parseSTChunks :: [Text] -> Document
Documentation
eventConduit :: forall (m :: Type -> Type). Monad m => ConduitT ByteString Event m () Source #
Converts a stream of bytes to a stream of properly balanced Event
s.
Note that there may be multiple (or not) root elements. sinkDoc
addresses
that case.
sinkDoc :: forall (m :: Type -> Type) o. MonadThrow m => ConduitT ByteString o m Document Source #
parseLBS :: ByteString -> Document Source #
parseBSChunks :: [ByteString] -> Document Source #
sinkDocText :: forall (m :: Type -> Type) o. MonadThrow m => ConduitT Text o m Document Source #
parseSTChunks :: [Text] -> Document Source #