Safe Haskell | None |
---|
Turn a Get
into a Sink
and a Put
into a Source
These functions are built upno the Data.Conduit.Cereal.Internal functions with default
implementations of ErrorHandler
and TerminationHandler
The default ErrorHandler
and TerminationHandler
both throw a GetException
.
- data GetException
- sinkGet :: MonadThrow m => Get r -> GLSink ByteString m r
- conduitGet :: MonadThrow m => Get o -> GLConduit ByteString m o
- sourcePut :: Monad m => Put -> GSource m ByteString
- conduitPut :: Monad m => Putter a -> GInfConduit a m ByteString
Documentation
sinkGet :: MonadThrow m => Get r -> GLSink ByteString m rSource
conduitGet :: MonadThrow m => Get o -> GLConduit ByteString m oSource
sourcePut :: Monad m => Put -> GSource m ByteStringSource
Convert a Put
into a Source
. Runs in constant memory.
conduitPut :: Monad m => Putter a -> GInfConduit a m ByteStringSource
Run a Putter
repeatedly on the input stream, producing a concatenated ByteString
stream.