haskell: introduce failOnAllWarnings
Applying `haskell.lib.failOnAllWarnings` to a Haskell package enables the `-Wall` and `-Werror` GHC options to turn all warnings into build failures.
This commit is contained in:
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user