diff --git a/Cabal/tests/PackageTests/Tests.hs b/Cabal/tests/PackageTests/Tests.hs
index 37236721f5f662c917fb5a34855399982c93731c..febd5e7b41f2eaf793eda703d0c1b388da64a153 100644
--- a/Cabal/tests/PackageTests/Tests.hs
+++ b/Cabal/tests/PackageTests/Tests.hs
@@ -221,6 +221,20 @@ nonSharedLibTests config =
             cabal_build ["--enable-tests"]
             cabal "test" []
 
+  -- Test that '--allow-newer' works via the 'Setup.hs configure' interface.
+  , tc "AllowNewer" $ do
+        shouldFail $ cabal "configure" []
+        cabal "configure" ["--allow-newer"]
+        shouldFail $ cabal "configure" ["--allow-newer=baz,quux"]
+        cabal "configure" ["--allow-newer=base", "--allow-newer=baz,quux"]
+        shouldFail $ cabal "configure" ["--enable-tests"]
+        cabal "configure" ["--enable-tests", "--allow-newer"]
+        shouldFail $ cabal "configure" ["--enable-benchmarks"]
+        cabal "configure" ["--enable-benchmarks", "--allow-newer"]
+        shouldFail $ cabal "configure" ["--enable-benchmarks", "--enable-tests"]
+        cabal "configure" ["--enable-benchmarks", "--enable-tests"
+                          ,"--allow-newer"]
+
   -- Test that Cabal can choose flags to disable building a component when that
   -- component's dependencies are unavailable. The build should succeed without
   -- requiring the component's dependencies or imports.
diff --git a/HACKING.md b/HACKING.md
index cef49387ac83fb68b7f7ed6336655cc23c51a755..0b4595c0e7607973d55ced099453102b3415beac 100644
--- a/HACKING.md
+++ b/HACKING.md
@@ -70,7 +70,7 @@ To build and test the `Cabal` library, do:
     we cannot use `cabal` for the next steps;
     we need to use Setup instead.
     So, compile Setup.hs:
-    
+
     ~~~~
     ghc --make -threaded Setup.hs
     ~~~~
@@ -89,7 +89,7 @@ To build and test the `Cabal` library, do:
     ~~~~
     ~/MyHaskellCode/cabal/Cabal/.cabal-sandbox/$SOMESTUFF-packages.conf.d
     ~~~~
-    
+
     (or, as a relative path with my setup:)
 
     ~~~~