From 0382a0443664214848ccc340c8a4dc1c667617a6 Mon Sep 17 00:00:00 2001 From: Anton-Latukha Date: Wed, 3 Jun 2020 20:36:42 +0300 Subject: [PATCH] default.nix: expose functionality: failOnAllWarnings; add doc M default.nix --- default.nix | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/default.nix b/default.nix index 6907519..e33f82a 100644 --- a/default.nix +++ b/default.nix @@ -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: