cereal-conduit-0.6: Turn Data.Serialize Gets and Puts into Sources, Sinks, and Conduits

Safe HaskellNone

Data.Conduit.Cereal.Internal

Synopsis

Documentation

type ConduitErrorHandler m o = String -> GLConduit ByteString m oSource

What should we do if the Get fails?

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