Safe Haskell | None |
---|---|
Language | Haskell2010 |
Synopsis
- type ConduitEventParser e o m a = forall i. EventParser (ListT (ConduitT i o m)) e (ConduitT i o m) a
- streamParserToConduit :: Monad m => ParseOptions Text Text -> ConduitEventParser e o m a -> ConduitT ByteString o m (Either (EventParseError e, Maybe XMLParseLocation) a)
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.