Skip to content

Commit

Permalink
hspec-expectations.cabal: Disable redundant-constraint warnings
Browse files Browse the repository at this point in the history
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.
  • Loading branch information
erikd committed Sep 6, 2016
1 parent ac6dccc commit 96b8fb8
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions hspec-expectations.cabal
Original file line number Diff line number Diff line change
Expand Up @@ -25,6 +25,8 @@ library
hs-source-dirs:
src
ghc-options: -Wall
if impl(ghc >= 8.0)
ghc-options: -fno-warn-redundant-constraints
build-depends:
base == 4.*
, HUnit
Expand Down

0 comments on commit 96b8fb8

Please sign in to comment.