diff --git a/src/Network/Routing/Dict/Internal.hs b/src/Network/Routing/Dict/Internal.hs
--- a/src/Network/Routing/Dict/Internal.hs
+++ b/src/Network/Routing/Dict/Internal.hs
@@ -1,6 +1,5 @@
 {-# LANGUAGE FunctionalDependencies #-}
 {-# LANGUAGE UndecidableInstances #-}
-{-# LANGUAGE OverlappingInstances #-}
 {-# LANGUAGE ScopedTypeVariables #-}
 {-# LANGUAGE FlexibleInstances #-}
 {-# LANGUAGE FlexibleContexts #-}
@@ -13,6 +12,10 @@
 {-# LANGUAGE GADTs #-}
 {-# LANGUAGE CPP #-}
 
+#if __GLASGOW_HASKELL < 710
+{-# LANGUAGE OverlappingInstances #-}
+#endif
+
 module Network.Routing.Dict.Internal
     ( Dict, Store
     , ShowDict
@@ -192,7 +195,11 @@
 class Member (k :: Symbol) (v :: *) (kvs :: [KV *]) | k kvs -> v where
     get' :: proxy k -> Dict kvs -> v
 
+#if __GLASGOW_HASKELL__ >= 710
+instance {-# OVERLAPPING #-} Member k v (k := v ': kvs) where
+#else
 instance Member k v (k := v ': kvs) where
+#endif
     get' = getImpl
     {-# INLINE get' #-}
 
diff --git a/web-routing.cabal b/web-routing.cabal
--- a/web-routing.cabal
+++ b/web-routing.cabal
@@ -1,5 +1,5 @@
 name:                web-routing
-version:             0.6.0
+version:             0.6.1
 synopsis:            simple routing library
 license:             MIT
 license-file:        LICENSE
@@ -16,7 +16,7 @@
   exposed-modules:     Network.Routing
                        Network.Routing.Dict
   other-modules:       Network.Routing.Dict.Internal
-  build-depends:       base                 >=4.6  && <4.8
+  build-depends:       base                 >=4.6  && <4.9
                      , bytestring           >=0.10 && <0.11
                      , text                 >=1.1  && <1.3 
                      , unordered-containers >=0.2  && <0.3
@@ -31,14 +31,14 @@
   ghc-options:         -threaded
   main-is:             doctest.hs
   hs-source-dirs:      tests
-  build-depends:       base    >=4.6 && <4.8
+  build-depends:       base
                      , doctest >=0.9 && <0.10
   default-language:    Haskell2010
 
 benchmark benchmarks
   type:                exitcode-stdio-1.0
   main-is:             bench/main.hs
-  build-depends:       base    >=4.6 && <4.8
+  build-depends:       base
                      , web-routing
                      , criterion
                      , text
