hexpat-conduit-0.0.1
Safe HaskellNone
LanguageHaskell2010

Text.XML.Expat.StreamParser.Conduit

Synopsis

Documentation

type ConduitEventParser e o m a = forall i. EventParser (ListT (ConduitT i o m)) e (ConduitT i o m) a Source #

An EventParser in the ConduitT monad.

streamParserToConduit :: Monad m => ParseOptions Text Text -> ConduitEventParser e o m a -> ConduitT ByteString o m (Either (EventParseError e, Maybe XMLParseLocation) a) Source #

Convert an EventParser in the ConduitT monad to a ConduitT that takes bytestrings and produces the result of the parser. You can use `lift . yield` to stream values as a side effect in the ConduitT monad, or `lift effect` to run any effect in the ConduitT monad.