cereal-conduit-0.0.1: Turn Data.Serialize Gets and Puts into Sources and Sinks
Data.Conduit.Cereal
Description
Turn a Get into a Sink and a Put into a Source
Get
Sink
Put
Source
Synopsis
data GetError Source
Constructors
Instances
sinkGet :: ResourceThrow m => Get output -> Sink ByteString m outputSource
Convert a Get into a Sink. The Get will be streamed bytes until it returns Done or Fail.
Done
Fail
If the Get fails, a GetError will be thrown with resourceThrow
resourceThrow
sourcePut :: Resource m => Put -> Source m ByteStringSource
Convert a Put into a Source. Runs in constant memory.