diff --git a/atomic-primops.cabal b/atomic-primops.cabal
--- a/atomic-primops.cabal
+++ b/atomic-primops.cabal
@@ -1,5 +1,5 @@
 Name:                atomic-primops
-Version:             0.6.0.5
+Version:             0.6.0.6
 License:             BSD3
 License-file:        LICENSE
 Author:              Ryan Newton
@@ -96,7 +96,7 @@
 
   -- casMutVar# had a bug in GHC 7.2, thus we require GHC 7.4 or greater
   -- (base 4.5 or greater). We also need the "Any" kind.
-  build-depends:     base >= 4.6.0.0 && <= 4.7.0.0, ghc-prim, primitive
+  build-depends:     base >= 4.6.0.0 && < 4.8.0.0, ghc-prim, primitive
 
   -- TODO: Try to push support back to 7.0, but make it default to an implementation
   -- other than Unboxed.
diff --git a/testing/test-atomic-primops.cabal b/testing/test-atomic-primops.cabal
--- a/testing/test-atomic-primops.cabal
+++ b/testing/test-atomic-primops.cabal
@@ -15,10 +15,6 @@
     Description: Enable GHC threaded RTS.
     Default: True
 
-Flag withTH
-     Description: Build the test suite, including the template-haskell-atomic-primops executable.
-     Default: False
-
 Test-Suite test-atomic-primops
     type:       exitcode-stdio-1.0
     main-is:    Test.hs
@@ -50,7 +46,7 @@
 Test-suite template-haskell-atomic-primops
   type:       exitcode-stdio-1.0
   main-is: ghci-test.hs
-  if flag(withTH) {
+  if impl(ghc >= 7.8) {
     Buildable: True
     build-depends: base >= 4.5, atomic-primops >= 0.6.0.5, template-haskell,
                    -- For Testing:
