| Safe Haskell | None |
|---|---|
| Language | Haskell98 |
Data.Conduit.Cereal.Internal
Synopsis
- type ConduitErrorHandler (m :: Type -> Type) o = String -> ConduitT ByteString o m ()
- type SinkErrorHandler (m :: Type -> Type) r = forall o. String -> ConduitT ByteString o m r
- type SinkTerminationHandler (m :: Type -> Type) r = forall o. (ByteString -> Result r) -> ConduitT ByteString o m r
- mkConduitGet :: forall (m :: Type -> Type) o. Monad m => ConduitErrorHandler m o -> Get o -> ConduitT ByteString o m ()
- mkSinkGet :: forall (m :: Type -> Type) r o. Monad m => SinkErrorHandler m r -> SinkTerminationHandler m r -> Get r -> ConduitT ByteString o m r
Documentation
type ConduitErrorHandler (m :: Type -> Type) o = String -> ConduitT ByteString o m () Source #
What should we do if the Get fails?
type SinkErrorHandler (m :: Type -> Type) r = forall o. String -> ConduitT ByteString o m r Source #
type SinkTerminationHandler (m :: Type -> Type) r = forall o. (ByteString -> Result r) -> ConduitT ByteString o m r Source #
What should we do if the stream is done before the Get is done?
mkConduitGet :: forall (m :: Type -> Type) o. Monad m => ConduitErrorHandler m o -> Get o -> ConduitT ByteString o m () Source #
Construct a conduitGet with the specified ErrorHandler
mkSinkGet :: forall (m :: Type -> Type) r o. Monad m => SinkErrorHandler m r -> SinkTerminationHandler m r -> Get r -> ConduitT ByteString o m r Source #
Construct a sinkGet with the specified ErrorHandler and TerminationHandler