From e736dfe6bfb2fdee310447aa53762cc420c44a00 Mon Sep 17 00:00:00 2001 From: Erik de Castro Lopo Date: Sat, 3 Sep 2016 20:50:25 +1000 Subject: [PATCH] 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. --- hspec-expectations.cabal | 2 ++ 1 file changed, 2 insertions(+) diff --git a/hspec-expectations.cabal b/hspec-expectations.cabal index 4bab9bf..fa96794 100644 --- a/hspec-expectations.cabal +++ b/hspec-expectations.cabal @@ -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