diff --git a/Network/Wai/Handler/FastCGI.hsc b/Network/Wai/Handler/FastCGI.hsc
--- a/Network/Wai/Handler/FastCGI.hsc
+++ b/Network/Wai/Handler/FastCGI.hsc
@@ -133,7 +133,7 @@
     let vars' = map (S8.unpack *** S8.unpack) vars
     let input = const $ sRead ins
     let hPut = sPutStr' outs
-    CGI.run'' vars' (CGI.requestBodyFunc input) hPut xsendfile f
+    CGI.runGeneric vars' (CGI.requestBodyFunc input) hPut xsendfile f
 
 data FCGX_Request
 
diff --git a/wai-handler-fastcgi.cabal b/wai-handler-fastcgi.cabal
--- a/wai-handler-fastcgi.cabal
+++ b/wai-handler-fastcgi.cabal
@@ -1,5 +1,5 @@
 name:            wai-handler-fastcgi
-version:         0.3.0
+version:         0.4.0
 license:         BSD3
 license-file:    LICENSE
 author:          Michael Snoyman <michael@snoyman.com>
@@ -14,8 +14,8 @@
 
 library
     build-depends:   base              >= 4           && < 5
-                   , wai               >= 0.3         && < 0.4
-                   , wai-extra         >= 0.3         && < 0.4
+                   , wai               >= 0.4         && < 0.5
+                   , wai-extra         >= 0.4         && < 0.5
                    , bytestring        >= 0.9         && < 0.10
     exposed-modules: Network.Wai.Handler.FastCGI
     ghc-options:     -Wall
