Popularity
6.3
Declining
Activity
0.0
Stable
1
10
0

Monthly Downloads: 3
Programming language: Haskell
License: BSD 3-clause "New" or "Revised" License
Tags: Data     IO-Streams     Parsing     Cereal    
Latest version: v0.0.1.0

cereal-io-streams alternatives and similar packages

Based on the "cereal" category.
Alternatively, view cereal-io-streams alternatives based on common mentions on social networks and blogs.

Do you think we are missing an alternative of cereal-io-streams or a related project?

Add another 'cereal' Package

README

cereal-io-streams - io-streams support for the cereal binary serialization library

Build Status

Functions

putToStream :: Put -> IO (InputStream ByteString) putEachStream :: Putter r -> InputStream r -> IO (InputStream ByteString) getFromStream :: Get r -> InputStream ByteString -> IO r getEachStream :: Get r -> InputStream ByteString -> IO (InputStream r) contramapPut :: Putter r -> OutputStream ByteString -> IO (OutputStream r) 

Examples

>>> getFromStream (get :: Get String) =<< putToStream (put "serialize me") "serialize me" >>> getFromStream (get :: Get String) =<< Streams.fromByteString (Data.ByteString.drop 1 $ runPut $ put ("serialize me" :: String)) *** Exception: Get exception: too few bytes From: demandInput