diff --git a/Main.hs b/Main.hs
--- a/Main.hs
+++ b/Main.hs
@@ -11,6 +11,8 @@
 main :: IO ()
 main = getArgs >>= mapM_ (\cabalFile -> readPackageDescription silent cabalFile >>= writeGenericPackageDescription cabalFile . stripVersionRestrictions)
 
+-- We don't relax version restrictions inside conditional statements.
+-- See https://github.com/peti/jailbreak-cabal/commit/99eac40deb481b185fd93fd307625369ff5e1ec0
 stripVersionRestrictions :: GenericPackageDescription -> GenericPackageDescription
 stripVersionRestrictions pkg = pkg { condLibrary = fmap relaxLibraryTree (condLibrary pkg)
                                    , condExecutables = map (fmap relaxExeTree) (condExecutables pkg)
diff --git a/jailbreak-cabal.cabal b/jailbreak-cabal.cabal
--- a/jailbreak-cabal.cabal
+++ b/jailbreak-cabal.cabal
@@ -1,5 +1,5 @@
 Name:                   jailbreak-cabal
-Version:                1.3
+Version:                1.3.1
 Synopsis:               Strip version restrictions from build dependencies in Cabal files.
 License:                BSD3
 License-file:           LICENSE
@@ -9,7 +9,7 @@
 Category:               Distribution
 Build-type:             Simple
 Cabal-version:          >= 1.6
-Tested-with:            GHC >= 6.10.4 && <= 7.10.1
+Tested-with:            GHC >= 6.10.4 && <= 8.0.1
 Description:            Strip version restrictions from build dependencies in Cabal files.
 
 Source-Repository head
@@ -18,4 +18,4 @@
 
 Executable jailbreak-cabal
   Main-is:              Main.hs
-  Build-depends:        base >= 3 && < 5, Cabal > 1.18
+  Build-depends:        base >= 3 && < 5, Cabal == 1.20.* || >= 1.23
