diff --git a/hspec-core.cabal b/hspec-core.cabal
--- a/hspec-core.cabal
+++ b/hspec-core.cabal
@@ -4,10 +4,10 @@
 --
 -- see: https://github.com/sol/hpack
 --
--- hash: d15ffeb43ef1d93930099b550ae67aff43faf175f1b1c6479204335df8ab4304
+-- hash: aad8baed239fa77de8e6985c3f9589ef910687c7b0e9a6eed0dcf32ca3faf146
 
 name:             hspec-core
-version:          2.5.6
+version:          2.5.7
 license:          MIT
 license-file:     LICENSE
 copyright:        (c) 2011-2018 Simon Hengel,
diff --git a/test/Test/Hspec/Core/Example/LocationSpec.hs b/test/Test/Hspec/Core/Example/LocationSpec.hs
--- a/test/Test/Hspec/Core/Example/LocationSpec.hs
+++ b/test/Test/Hspec/Core/Example/LocationSpec.hs
@@ -20,6 +20,7 @@
             return (n :: Int)
           extractLocation e `shouldBe` location
 
+#if !MIN_VERSION_base(4,12,0)
       context "in Either" $ do
         it "extracts Location" $ do
           let location = Just $ Location __FILE__ (__LINE__ + 4) 15
@@ -30,6 +31,7 @@
               return ()
           Left e <- try (evaluate foo)
           extractLocation e `shouldBe` location
+#endif
 
     context "with ErrorCall" $ do
       it "extracts Location" $ do
