diff --git a/library/Potoki/Consume.hs b/library/Potoki/Consume.hs
--- a/library/Potoki/Consume.hs
+++ b/library/Potoki/Consume.hs
@@ -105,8 +105,9 @@
 writeBytesToFile path =
   Consume $ \ fetch ->
   try $ withFile path WriteMode $ \ handle ->
-  L.fetchAndHandleAll fetch (return ()) $ \ bytes -> 
-  C.hPut handle bytes
+  do
+    hSetBuffering handle NoBuffering
+    L.fetchAndHandleAll fetch (return ()) (C.hPut handle)
 
 {-|
 Append to a file.
@@ -119,8 +120,9 @@
 appendBytesToFile path =
   Consume $ \ fetch ->
   try $ withFile path AppendMode $ \ handle ->
-  L.fetchAndHandleAll fetch (return ()) $ \ bytes -> 
-  C.hPut handle bytes
+  do
+    hSetBuffering handle NoBuffering
+    L.fetchAndHandleAll fetch (return ()) (C.hPut handle)
 
 {-# INLINABLE deleteFiles #-}
 deleteFiles :: Consume FilePath (Either IOException ())
diff --git a/potoki.cabal b/potoki.cabal
--- a/potoki.cabal
+++ b/potoki.cabal
@@ -1,7 +1,7 @@
 name:
   potoki
 version:
-  0.6.1
+  0.6.2
 synopsis:
   Simple streaming in IO
 description:
@@ -65,33 +65,28 @@
   default-language:
     Haskell2010
   exposed-modules:
+    Potoki.Consume
     Potoki.IO
     Potoki.Produce
-    Potoki.Consume
     Potoki.Transform
   other-modules:
     Potoki.Fetch
     Potoki.Prelude
   build-depends:
-    -- 
-    potoki-core >=1.2 && <1.3,
-    -- 
     attoparsec >=0.13 && <0.15,
-    -- 
-    text >=1 && <2,
+    base >=4.7 && <5,
+    base-prelude <2,
+    bug >=1 && <2,
     bytestring ==0.10.*,
-    vector >=0.12 && <0.13,
-    hashable >=1 && <2,
-    -- 
-    unagi-chan >=0.4 && <0.5,
-    -- 
     directory >=1.3 && <2,
-    unordered-containers >=0.2 && <0.3,
     foldl >=1.3 && <2,
+    hashable >=1 && <2,
+    potoki-core >=1.2 && <1.3,
     profunctors >=5.2 && <6,
-    base-prelude <2,
-    bug >=1 && <2,
-    base >=4.7 && <5
+    text >=1 && <2,
+    unagi-chan >=0.4 && <0.5,
+    unordered-containers >=0.2 && <0.3,
+    vector >=0.12 && <0.13
 
 test-suite tests
   type:
@@ -105,15 +100,12 @@
   default-language:
     Haskell2010
   build-depends:
-    -- 
-    potoki,
     attoparsec,
+    potoki,
+    QuickCheck >=2.8.1 && <3,
+    quickcheck-instances >=0.3.11 && <0.4,
     random >=1.1 && <2,
-    -- testing:
+    rerebase >=1.1 && <2,
     tasty >=0.12 && <0.13,
-    tasty-quickcheck >=0.9 && <0.10,
     tasty-hunit >=0.9 && <0.11,
-    quickcheck-instances >=0.3.11 && <0.4,
-    QuickCheck >=2.8.1 && <3,
-    --
-    rerebase >=1.1 && <2
+    tasty-quickcheck >=0.9 && <0.10
