diff --git a/summoner-cli/summoner.cabal b/summoner-cli/summoner.cabal index 9144b6ee..736d3fd5 100644 --- a/summoner-cli/summoner.cabal +++ b/summoner-cli/summoner.cabal @@ -80,13 +80,18 @@ common common-options ) ghc-options: -Wall - -Wincomplete-uni-patterns - -Wincomplete-record-updates -Wcompat -Widentities - -Wredundant-constraints - -fhide-source-paths - if impl(ghc >= 8.8.1) + -Wincomplete-uni-patterns + -Wincomplete-record-updates + if impl(ghc >= 8.0) + ghc-options: -Wredundant-constraints + if impl(ghc >= 8.2) + ghc-options: -fhide-source-paths + if impl(ghc >= 8.4) + ghc-options: -Wmissing-export-lists + -Wpartial-fields + if impl(ghc >= 8.8) ghc-options: -Wmissing-deriving-strategies -Werror=missing-deriving-strategies diff --git a/summoner-cli/test/Spec.hs b/summoner-cli/test/Spec.hs index b01bbcad..c9bb9609 100644 --- a/summoner-cli/test/Spec.hs +++ b/summoner-cli/test/Spec.hs @@ -1,4 +1,4 @@ -module Main where +module Main (main) where import Hedgehog (Group (..), checkParallel) import Test.Hspec (hspec) diff --git a/summoner-tui/summoner-tui.cabal b/summoner-tui/summoner-tui.cabal index 3b487223..5f7ad282 100644 --- a/summoner-tui/summoner-tui.cabal +++ b/summoner-tui/summoner-tui.cabal @@ -34,15 +34,19 @@ common common-options , Relude.Extra.Enum , Relude.Extra.Validation ) - ghc-options: -Wall - -Wincomplete-uni-patterns - -Wincomplete-record-updates -Wcompat -Widentities - -Wredundant-constraints - -fhide-source-paths - if impl(ghc >= 8.8.1) + -Wincomplete-uni-patterns + -Wincomplete-record-updates + if impl(ghc >= 8.0) + ghc-options: -Wredundant-constraints + if impl(ghc >= 8.2) + ghc-options: -fhide-source-paths + if impl(ghc >= 8.4) + ghc-options: -Wmissing-export-lists + -Wpartial-fields + if impl(ghc >= 8.8) ghc-options: -Wmissing-deriving-strategies -Werror=missing-deriving-strategies