default.nix: expose functionality: failOnAllWarnings; add doc

M  default.nix
This commit is contained in:
Anton-Latukha 2020-06-03 20:36:42 +03:00
parent 229a95ee14
commit 0382a04436
No known key found for this signature in database
GPG Key ID: 3D84C07E91802E41
1 changed files with 5 additions and 0 deletions

View File

@ -10,6 +10,7 @@
, sdistTarball ? false
# Produce SDist tarball and build project from it
, buildFromSdist ? true
, failOnAllWarnings ? false
# 2020-06-02: NOTE: enableDeadCodeElimination = true: On GHC =< 8.8.3 macOS build falls due to https://gitlab.haskell.org/ghc/ghc/issues/17283
# Disable GHC code optimizations for faster dev loops. Enable optimizations for production use or benchmarks.
, enableDeadCodeElimination ? false
@ -133,6 +134,10 @@ let
switch = buildFromSdist;
function = pkgs.haskell.lib.buildFromSdist;
}
{
switch = failOnAllWarnings;
function = pkgs.haskell.lib.failOnAllWarnings;
}
];
funcOnSwitchAppliesFunction = set: object: