Safe Haskell | None |
---|
- type ConduitErrorHandler m o = String -> GLConduit ByteString m o
- type SinkErrorHandler m r = String -> GLSink ByteString m r
- type SinkTerminationHandler m r = (ByteString -> Result r) -> GLSink ByteString m r
- mkConduitGet :: MonadThrow m => ConduitErrorHandler m o -> Get o -> GLConduit ByteString m o
- mkSinkGet :: Monad m => SinkErrorHandler m r -> SinkTerminationHandler m r -> Get r -> GLSink ByteString m r
Documentation
type ConduitErrorHandler m o = String -> GLConduit ByteString m oSource
What should we do if the Get fails?
type SinkErrorHandler m r = String -> GLSink ByteString m rSource
type SinkTerminationHandler m r = (ByteString -> Result r) -> GLSink ByteString m rSource
What should we do if the stream is done before the Get is done?
mkConduitGet :: MonadThrow m => ConduitErrorHandler m o -> Get o -> GLConduit ByteString m oSource
Construct a conduitGet with the specified ErrorHandler
mkSinkGet :: Monad m => SinkErrorHandler m r -> SinkTerminationHandler m r -> Get r -> GLSink ByteString m rSource
Construct a sinkGet with the specified ErrorHandler
and TerminationHandler