default.nix: expose functionality: checkUnusedPackages; provide doc
M default.nix
This commit is contained in:
parent
446372aaa5
commit
11151294d2
|
@ -37,6 +37,8 @@
|
|||
, enableSharedExecutables ? false
|
||||
, justStaticExecutables ? false
|
||||
, enableSeparateBinOutput ? false
|
||||
# Add a post-build check to verify that dependencies declared in the .cabal file are actually used.
|
||||
, checkUnusedPackages ? false
|
||||
# Generation and installation of haddock API documentation
|
||||
, doHaddock ? false
|
||||
# Generation and installation of a coverage report. See https://wiki.haskell.org/Haskell_program_coverage
|
||||
|
@ -174,6 +176,10 @@ let
|
|||
switch = justStaticExecutables;
|
||||
function = pkgs.haskell.lib.justStaticExecutables;
|
||||
}
|
||||
{
|
||||
switch = checkUnusedPackages;
|
||||
function = pkgs.haskell.lib.checkUnusedPackages {};
|
||||
}
|
||||
];
|
||||
|
||||
funcOnSwitchAppliesFunction = set: object:
|
||||
|
|
Loading…
Reference in a new issue