From b1038365960693a013d7026f25d026a1fd098062 Mon Sep 17 00:00:00 2001 From: Joey Hess Date: Fri, 11 Nov 2016 17:40:32 -0400 Subject: turn off redundant constraints warnings in cabal file ghc 7 does not support -fno-warn-redundant-constraints so this can't be done on a per-module basis. It would be good to revert this commit when dropping support for ghc 7. --- propellor.cabal | 2 ++ 1 file changed, 2 insertions(+) (limited to 'propellor.cabal') diff --git a/propellor.cabal b/propellor.cabal index 7d145024..db70942a 100644 --- a/propellor.cabal +++ b/propellor.cabal @@ -63,6 +63,8 @@ Executable propellor-config Library GHC-Options: -Wall -fno-warn-tabs -O0 + if impl(ghc >= 8.0) + GHC-Options: -fno-warn-redundant-constraints Extensions: TypeOperators Hs-Source-Dirs: src Build-Depends: -- cgit v1.3-2-g0d8e From 8389f3400c4a5b299ec6d4efc81cd9ce35266275 Mon Sep 17 00:00:00 2001 From: Joey Hess Date: Fri, 11 Nov 2016 17:47:02 -0400 Subject: need to disable warning here too --- propellor.cabal | 2 ++ 1 file changed, 2 insertions(+) (limited to 'propellor.cabal') diff --git a/propellor.cabal b/propellor.cabal index db70942a..5c04037a 100644 --- a/propellor.cabal +++ b/propellor.cabal @@ -53,6 +53,8 @@ Executable propellor Executable propellor-config Main-Is: config.hs GHC-Options: -threaded -Wall -fno-warn-tabs -O0 + if impl(ghc >= 8.0) + GHC-Options: -fno-warn-redundant-constraints Extensions: TypeOperators Hs-Source-Dirs: src Build-Depends: -- cgit v1.3-2-g0d8e From b6cddab178156464df2f0d422968e41c44bdc94d Mon Sep 17 00:00:00 2001 From: Joey Hess Date: Fri, 11 Nov 2016 17:50:15 -0400 Subject: need to disable warning here too --- propellor.cabal | 2 ++ 1 file changed, 2 insertions(+) (limited to 'propellor.cabal') diff --git a/propellor.cabal b/propellor.cabal index 5c04037a..dd6a4ebd 100644 --- a/propellor.cabal +++ b/propellor.cabal @@ -38,6 +38,8 @@ Description: Executable propellor Main-Is: wrapper.hs GHC-Options: -threaded -Wall -fno-warn-tabs -O0 + if impl(ghc >= 8.0) + GHC-Options: -fno-warn-redundant-constraints Extensions: TypeOperators Hs-Source-Dirs: src Build-Depends: -- cgit v1.3-2-g0d8e