diff --git a/Text/Libyaml.hs b/Text/Libyaml.hs
--- a/Text/Libyaml.hs
+++ b/Text/Libyaml.hs
@@ -554,7 +554,7 @@
            => FilePath
            -> C.Sink Event m ()
 encodeFile filePath =
-    C.SinkM msink
+    C.PipeM msink (return ())
   where
     msink = do
         (_releaseKey, file) <- flip allocate c_fclose $ do
diff --git a/yaml.cabal b/yaml.cabal
--- a/yaml.cabal
+++ b/yaml.cabal
@@ -1,5 +1,5 @@
 name:            yaml
-version:         0.6.1
+version:         0.7.0
 license:         BSD3
 license-file:    LICENSE
 author:          Michael Snoyman <michael@snoyman.com>, Anton Ageev <antage@gmail.com>,Kirill Simonov 
@@ -28,9 +28,9 @@
 
 library
     build-depends:   base >= 4 && < 5
-                   , transformers >= 0.1 && < 0.3
+                   , transformers >= 0.1 && < 0.4
                    , bytestring >= 0.9.1.4 && < 0.10
-                   , conduit >= 0.3 && < 0.4
+                   , conduit >= 0.4 && < 0.5
                    , resourcet >= 0.3 && < 0.4
                    , aeson >= 0.5
                    , containers
@@ -65,7 +65,7 @@
                    , HUnit
                    , directory
                    , base >= 4 && < 5
-                   , transformers >= 0.1 && < 0.3
+                   , transformers >= 0.1 && < 0.4
                    , bytestring >= 0.9.1.4 && < 0.10
                    , conduit
                    , yaml
