diff --git a/library/Potoki/Core/Consume.hs b/library/Potoki/Core/Consume.hs
--- a/library/Potoki/Core/Consume.hs
+++ b/library/Potoki/Core/Consume.hs
@@ -16,6 +16,7 @@
   folding,
   foldingInIO,
   execState,
+  writeBytesToStdout,
   writeBytesToFile,
   writeBytesToFileWithoutBuffering,
   appendBytesToFile,
@@ -202,6 +203,11 @@
 printString :: Consume String ()
 printString =
   processInIO (putChar '\n') putStr
+
+{-# INLINABLE writeBytesToStdout #-}
+writeBytesToStdout :: Consume ByteString ()
+writeBytesToStdout =
+  processInIO (return ()) (C.hPut stdout)
 
 {-|
 Overwrite a file.
diff --git a/potoki-core.cabal b/potoki-core.cabal
--- a/potoki-core.cabal
+++ b/potoki-core.cabal
@@ -1,5 +1,5 @@
 name: potoki-core
-version: 2.2.9
+version: 2.2.10
 synopsis: Low-level components of "potoki"
 description:
   Provides everything required for building custom instances of
