diff --git a/wai-middleware-static.cabal b/wai-middleware-static.cabal
--- a/wai-middleware-static.cabal
+++ b/wai-middleware-static.cabal
@@ -1,5 +1,5 @@
 Name:                wai-middleware-static
-Version:             0.4.0.2
+Version:             0.4.0.3
 Synopsis:            WAI middleware that intercepts requests to static files.
 Homepage:            https://github.com/scotty-web/scotty
 Bug-reports:         https://github.com/scotty-web/scotty/issues
@@ -25,11 +25,11 @@
                        bytestring       >= 0.10.0.2 && < 0.11,
                        containers       >= 0.5.0.0  && < 0.6,
                        directory        >= 1.2.0.1  && < 1.3,
+                       filepath         >= 1.3.0.1  && < 1.4,
                        http-types       >= 0.8.2    && < 0.9,
                        mtl              >= 2.1.2    && < 2.2,
-                       filepath         >= 1.3.0.1  && < 1.4,
-                       text             >= 0.11.3.1 && < 1.1,
-                       wai              >= 2.0.0    && < 2.1
+                       text             >= 0.11.3.1 && < 1.2,
+                       wai              >= 2.0.0    && < 2.2
 
   GHC-options: -Wall -fno-warn-orphans
 
