web: Re-add warnings conditional on GHC version

This commit is contained in:
Jakub Zárybnický 2018-06-25 12:12:17 +02:00
parent 466558968b
commit 70c1bb1ef0
2 changed files with 14 additions and 18 deletions

View File

@ -2,7 +2,7 @@
-- --
-- see: https://github.com/sol/hpack -- see: https://github.com/sol/hpack
-- --
-- hash: 541d9fc4104cd8cdcda3b38d002fbf354769af5b4f46e7b12ec1f0a70f452b12 -- hash: f95975f3e5a52d5f6d87d3a8fbb3feb0b74e14c550820bb276de675d990010f2
name: hledger-web name: hledger-web
version: 1.9.99 version: 1.9.99
@ -187,10 +187,8 @@ library
, yesod-core >=1.4 && <1.7 , yesod-core >=1.4 && <1.7
, yesod-form >=1.4 && <1.7 , yesod-form >=1.4 && <1.7
, yesod-static >=1.4 && <1.7 , yesod-static >=1.4 && <1.7
if (flag(dev)) || (flag(library-only)) if impl(ghc >=8)
cpp-options: -DDEVELOPMENT ghc-options: -Wcompat -Wincomplete-uni-patterns -Wincomplete-record-updates -Wredundant-constraints
if flag(dev)
ghc-options: -O0
default-language: Haskell2010 default-language: Haskell2010
executable hledger-web executable hledger-web
@ -204,10 +202,8 @@ executable hledger-web
build-depends: build-depends:
base base
, hledger-web , hledger-web
if (flag(dev)) || (flag(library-only)) if impl(ghc >=8)
cpp-options: -DDEVELOPMENT ghc-options: -Wcompat -Wincomplete-uni-patterns -Wincomplete-record-updates -Wredundant-constraints
if flag(dev)
ghc-options: -O0
if flag(library-only) if flag(library-only)
buildable: False buildable: False
if flag(threaded) if flag(threaded)
@ -230,8 +226,6 @@ test-suite test
, hledger-web , hledger-web
, hspec , hspec
, yesod-test , yesod-test
if (flag(dev)) || (flag(library-only)) if impl(ghc >=8)
cpp-options: -DDEVELOPMENT ghc-options: -Wcompat -Wincomplete-uni-patterns -Wincomplete-record-updates -Wredundant-constraints
if flag(dev)
ghc-options: -O0
default-language: Haskell2010 default-language: Haskell2010

View File

@ -67,11 +67,13 @@ when:
ghc-options: ghc-options:
- -Wall - -Wall
- -fwarn-tabs - -fwarn-tabs
#XXX to be reenabled once 7.6.3 support is dropped: when:
#- -Wcompat - condition: impl(ghc >=8)
#- -Wincomplete-uni-patterns ghc-options:
#- -Wincomplete-record-updates - -Wcompat
#- -Wredundant-constraints - -Wincomplete-uni-patterns
- -Wincomplete-record-updates
- -Wredundant-constraints
library: library:
source-dirs: . source-dirs: .