Skip to content

Commit 96b8fb8

Browse files
committed
hspec-expectations.cabal: Disable redundant-constraint warnings
GHC 8.0.1 added a new `redundant-constraints` warning that is part of `-Wall` by default. However, this warning is triggered on code that needs the constraints (eg AMP with ghc < 7.10) for earlier compilers.
1 parent ac6dccc commit 96b8fb8

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

hspec-expectations.cabal

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -25,6 +25,8 @@ library
2525
hs-source-dirs:
2626
src
2727
ghc-options: -Wall
28+
if impl(ghc >= 8.0)
29+
ghc-options: -fno-warn-redundant-constraints
2830
build-depends:
2931
base == 4.*
3032
, HUnit

0 commit comments

Comments
 (0)