diff --git a/Network/Wai/Middleware/Gzip.hs b/Network/Wai/Middleware/Gzip.hs
--- a/Network/Wai/Middleware/Gzip.hs
+++ b/Network/Wai/Middleware/Gzip.hs
@@ -31,6 +31,7 @@
 import Data.Default
 import Network.HTTP.Types (Status, Header)
 import Control.Monad.IO.Class (liftIO)
+import Control.Monad.Trans.Resource (runResourceT)
 import System.Directory (doesFileExist, createDirectoryIfMissing)
 import qualified Data.Conduit as C
 import qualified Data.Conduit.Zlib as CZ
@@ -102,7 +103,7 @@
         else do
             createDirectoryIfMissing True cache
             x <-
-               try $ C.runResourceT $ CB.sourceFile file
+               try $ runResourceT $ CB.sourceFile file
                 C.$$ CZ.gzip C.=$ CB.sinkFile tmpfile
             either onErr (const onSucc) x
   where
diff --git a/Network/Wai/Parse.hs b/Network/Wai/Parse.hs
--- a/Network/Wai/Parse.hs
+++ b/Network/Wai/Parse.hs
@@ -90,8 +90,9 @@
 
 -- | Save uploaded files on disk as temporary files
 --
--- Note: starting with version 2.0, it is the responsibility of the caller to
--- remove any temp files created by using this backend.
+-- Note: starting with version 2.0, removal of temp files is registered with
+-- the provided @InternalState@. It is the responsibility of the caller to
+-- ensure that this @InternalState@ gets cleaned up.
 tempFileBackEnd :: InternalState -> ignored1 -> ignored2 -> Sink S.ByteString IO FilePath
 tempFileBackEnd = tempFileBackEndOpts getTemporaryDirectory "webenc.buf"
 
diff --git a/wai-extra.cabal b/wai-extra.cabal
--- a/wai-extra.cabal
+++ b/wai-extra.cabal
@@ -1,5 +1,5 @@
 Name:                wai-extra
-Version:             2.1.1
+Version:             2.1.1.1
 Synopsis:            Provides some basic WAI handlers and middleware.
 Description:         The goal here is to provide common features without many dependencies.
 License:             MIT
@@ -35,11 +35,12 @@
                    , data-default
                    , fast-logger               >= 2.1      && < 2.2
                    , wai-logger                >= 2.0      && < 2.2
-                   , conduit                   >= 1.0      && < 1.1
-                   , zlib-conduit              >= 0.5      && < 1.1
-                   , blaze-builder-conduit     >= 0.5      && < 1.1
+                   , conduit                   >= 1.0      && < 1.2
+                   , conduit-extra             >= 0.1      && < 1.2
+                   , zlib-conduit              >= 0.5      && < 1.2
+                   , blaze-builder-conduit     >= 0.5      && < 1.2
                    , ansi-terminal
-                   , resourcet                 >= 0.4.6    && < 0.5
+                   , resourcet                 >= 0.4.6    && < 1.2
                    , void                      >= 0.5
                    , stringsearch              >= 0.3      && < 0.4
                    , containers
@@ -95,6 +96,7 @@
                    , conduit
                    , fast-logger               >= 2.1
                    , resourcet
+                   , conduit-extra
     ghc-options:       -Wall
 
 source-repository head
