Popularity
6.7
Growing
Activity
0.0
Stable
1
12
0
Monthly Downloads: 8
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.
WorkOS - The modern identity platform for B2B SaaS
The APIs are flexible and easy-to-use, supporting authentication, user identity, and complex enterprise features like SSO and SCIM provisioning.
Promo
workos.com
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