diff --git a/list-transformer.cabal b/list-transformer.cabal
--- a/list-transformer.cabal
+++ b/list-transformer.cabal
@@ -1,5 +1,5 @@
 name:                list-transformer
-version:             1.0.4
+version:             1.0.5
 synopsis:            List monad transformer
 description:         This library provides a list monad transformer that
                      enriches lists with effects and streams efficiently in
@@ -26,7 +26,10 @@
                      , mtl >= 2.1 && < 2.3
   if !impl(ghc >= 8.0)
     build-depends:     semigroups == 0.18.*
-  ghc-options:         -Wall -Wcompat
+  if !impl(ghc >= 8.0)
+    ghc-options:         -Wall
+  if  impl(ghc >= 8.0)
+    ghc-options:         -Wall -Wcompat
 
 test-suite doctest
   type: exitcode-stdio-1.0
