Skip to content

Commit

Permalink
Update ghc-options (#424)
Browse files Browse the repository at this point in the history
  • Loading branch information
vrom911 authored Feb 25, 2020
1 parent e666c66 commit b7b6c8b
Show file tree
Hide file tree
Showing 3 changed files with 21 additions and 12 deletions.
15 changes: 10 additions & 5 deletions summoner-cli/summoner.cabal
Original file line number Diff line number Diff line change
Expand Up @@ -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

Expand Down
2 changes: 1 addition & 1 deletion summoner-cli/test/Spec.hs
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
module Main where
module Main (main) where

import Hedgehog (Group (..), checkParallel)
import Test.Hspec (hspec)
Expand Down
16 changes: 10 additions & 6 deletions summoner-tui/summoner-tui.cabal
Original file line number Diff line number Diff line change
Expand Up @@ -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

Expand Down

0 comments on commit b7b6c8b

Please sign in to comment.