diff --git a/compiler/ghc.cabal.in b/compiler/ghc.cabal.in
index aa1d7b5b5a2bcd272d2dd897d6971f03069cc266..8fff3e60a6c4848b8045bea46c680446eba801a6 100644
--- a/compiler/ghc.cabal.in
+++ b/compiler/ghc.cabal.in
@@ -105,7 +105,7 @@ Library
                    array      >= 0.1 && < 0.6,
                    filepath   >= 1   && < 1.5,
                    template-haskell == 2.21.*,
-                   hpc        == 0.6.*,
+                   hpc        >= 0.6 && < 0.8,
                    transformers >= 0.5 && < 0.7,
                    exceptions == 0.10.*,
                    semaphore-compat,