Popularity
6.6
Declining
Activity
0.0
Stable
1
11
0
Monthly Downloads: 3
Programming language: Haskell
License: BSD 3-clause "New" or "Revised" License
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.
-
cereal-time
Serialize instances for types from `time` package.
Clean code begins in your IDE with SonarLint
Up your coding game and discover issues early. SonarLint is a free plugin that helps you find & fix bugs and security issues from the moment you start writing code. Install from your favorite IDE marketplace today.
Promo
www.sonarlint.org
Do you think we are missing an alternative of cereal-io-streams or a related project?
README
cereal-io-streams - io-streams support for the cereal binary serialization library
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