diff --git a/Web/Routes/RouteT.hs b/Web/Routes/RouteT.hs
--- a/Web/Routes/RouteT.hs
+++ b/Web/Routes/RouteT.hs
@@ -17,7 +17,11 @@
 import Control.Monad (MonadPlus(mzero, mplus))
 import Control.Monad.Catch (MonadCatch(catch), MonadThrow(throwM))
 import Control.Monad.Cont(MonadCont(callCC))
+#if MIN_VERSION_mtl(2,3,0)
+import Control.Monad.Except (MonadError(throwError, catchError))
+#else
 import Control.Monad.Error (MonadError(throwError, catchError))
+#endif
 #if !MIN_VERSION_base(4,13,0)
 -- Control.Monad.Fail import is redundant since GHC 8.8.1
 import Prelude hiding (fail)
diff --git a/web-routes.cabal b/web-routes.cabal
--- a/web-routes.cabal
+++ b/web-routes.cabal
@@ -1,5 +1,5 @@
 Name:             web-routes
-Version:          0.27.15
+Version:          0.27.16
 License:          BSD3
 License-File:     LICENSE
 Author:           jeremy@seereason.com
@@ -10,7 +10,7 @@
 Homepage:         http://www.happstack.com/docs/crashcourse/index.html#web-routes
 Cabal-Version:    >= 1.10
 Build-type:       Simple
-tested-with:      GHC==8.0.2, GHC==8.2.2, GHC==8.4.1, GHC==8.6.5, GHC==8.8.4, GHC==8.10.7, GHC==9.0.2, GHC==9.2.5, GHC==9.4.2
+tested-with:      GHC==8.0.2, GHC==8.2.2, GHC==8.4.1, GHC==8.6.5, GHC==8.8.4, GHC==8.10.7, GHC==9.0.2, GHC==9.2.5, GHC==9.4.8, GHC==9.6.4, GHC==9.8.1
 
 test-suite Test
   Default-Language : Haskell2010
@@ -29,10 +29,10 @@
         Build-Depends:    base          >= 4.9  && < 5,
                           blaze-builder >= 0.2  && < 0.5,
                           parsec        >= 2    && < 4,
-                          bytestring    >= 0.9  && < 0.12,
+                          bytestring    >= 0.9  && < 0.13,
                           http-types    >= 0.6  && < 0.13,
                           mtl           >= 2.0  && < 2.4,
-                          text          >= 0.11 && < 2.1,
+                          text          >= 0.11 && < 2.2,
                           utf8-string   >= 0.3  && < 1.1,
                           exceptions    >= 0.6.1 && < 0.11
         if impl(ghc >= 7.2)
