potoki-cereal 0.3.1 → 0.3.2
raw patch · 3 files changed
+7/−1 lines, 3 files
Files
- library/Potoki/Cereal/Consume.hs +3/−0
- library/Potoki/Cereal/Produce.hs +3/−0
- potoki-cereal.cabal +1/−1
library/Potoki/Cereal/Consume.hs view
@@ -34,3 +34,6 @@ encodeToFile :: Serialize a => FilePath -> Consume a (Either IOException ()) encodeToFile = transform D.encode . writeBytesToFile++encodeToStdout :: Serialize a => Consume a ()+encodeToStdout = transform D.encode writeBytesToStdout
library/Potoki/Cereal/Produce.hs view
@@ -19,6 +19,9 @@ fileDecoded :: Serialize a => FilePath -> Produce (Either IOException (Either Text a)) fileDecoded = transform (right D.decode) . fileBytes +stdinDecoded :: (Serialize a) => Produce (Either IOException (Either Text a))+stdinDecoded = transform (right' D.decode) stdinBytes+ directoryDecoded :: Serialize a => FilePath -> Produce (Either IOException (Either Text a)) directoryDecoded dirPath = transform
potoki-cereal.cabal view
@@ -1,5 +1,5 @@ name: potoki-cereal-version: 0.3.1+version: 0.3.2 synopsis: Streaming serialization category: Potoki, Streaming homepage: https://github.com/metrix-ai/potoki-cereal