diff --git a/library/Potoki/Cereal/Consume.hs b/library/Potoki/Cereal/Consume.hs
--- a/library/Potoki/Cereal/Consume.hs
+++ b/library/Potoki/Cereal/Consume.hs
@@ -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
diff --git a/library/Potoki/Cereal/Produce.hs b/library/Potoki/Cereal/Produce.hs
--- a/library/Potoki/Cereal/Produce.hs
+++ b/library/Potoki/Cereal/Produce.hs
@@ -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
diff --git a/potoki-cereal.cabal b/potoki-cereal.cabal
--- a/potoki-cereal.cabal
+++ b/potoki-cereal.cabal
@@ -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
