Merge pull request #29194 from LumiGuide/haskell-failOnAllWarnings

haskell: introduce failOnAllWarnings
This commit is contained in:
Peter Simons
2017-09-10 20:39:29 +02:00
committed by GitHub
2 changed files with 12 additions and 5 deletions

View File

@@ -117,7 +117,9 @@ rec {
'';
});
buildStrictly = pkg: buildFromSdist (appendConfigureFlag pkg "--ghc-option=-Wall --ghc-option=-Werror");
buildStrictly = pkg: buildFromSdist (failOnAllWarnings pkg);
failOnAllWarnings = drv: appendConfigureFlag drv "--ghc-option=-Wall --ghc-option=-Werror";
checkUnusedPackages =
{ ignoreEmptyImports ? false