diff --git a/haskell-gi-base.cabal b/haskell-gi-base.cabal
--- a/haskell-gi-base.cabal
+++ b/haskell-gi-base.cabal
@@ -1,5 +1,5 @@
 name:                haskell-gi-base
-version:             0.16
+version:             0.17
 synopsis:            Foundation for libraries generated by haskell-gi
 description:         Foundation for libraries generated by haskell-gi
 homepage:            https://github.com/haskell-gi/haskell-gi-base
@@ -49,7 +49,11 @@
   if !impl(ghc >= 8.0)
     build-depends:     transformers
 
+  if impl(ghc >= 8.0)
+    ghc-options: -Wall -Wno-redundant-constraints -fwarn-incomplete-patterns
+  else
+    ghc-options: -Wall -fwarn-incomplete-patterns
+
   build-tools:         hsc2hs
   extensions:          CPP, ForeignFunctionInterface, DoAndIfThenElse
-  ghc-options:         -Wall -Wno-redundant-constraints -fwarn-incomplete-patterns
   c-sources:           src/c/hsgclosure.c
