Skip to content

Commit

Permalink
haskell.lib.compose.addOptparseApplicativeCompletionScripts: remove
Browse files Browse the repository at this point in the history
This function was deprecated when it was first added to
haskell.lib.compose, so we can probably safely drop it.
  • Loading branch information
sternenseemann committed Oct 6, 2022
1 parent ac1f1ad commit 9e9b7f4
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 5 deletions.
4 changes: 0 additions & 4 deletions pkgs/development/haskell-modules/lib/compose.nix
Original file line number Diff line number Diff line change
Expand Up @@ -417,10 +417,6 @@ rec {
in
builtins.listToAttrs (map toKeyVal haskellPaths);

addOptparseApplicativeCompletionScripts = exeName: pkg:
lib.warn "addOptparseApplicativeCompletionScripts is deprecated in favor of haskellPackages.generateOptparseApplicativeCompletions. Please change ${pkg.name} to use the latter and make sure it uses its matching haskell.packages set!"
(__generateOptparseApplicativeCompletion exeName pkg);

/*
INTERNAL function retained for backwards compatibility, use
haskell.packages.*.generateOptparseApplicativeCompletions instead!
Expand Down
4 changes: 3 additions & 1 deletion pkgs/development/haskell-modules/lib/default.nix
Original file line number Diff line number Diff line change
Expand Up @@ -316,7 +316,9 @@ rec {
# packagesFromDirectory : { directory : Directory, ... } -> HaskellPackageOverrideSet
packagesFromDirectory = compose.packagesFromDirectory;

addOptparseApplicativeCompletionScripts = compose.addOptparseApplicativeCompletionScripts;
addOptparseApplicativeCompletionScripts = exeName: pkg:
lib.warn "addOptparseApplicativeCompletionScripts is deprecated in favor of haskellPackages.generateOptparseApplicativeCompletions. Please change ${pkg.name} to use the latter and make sure it uses its matching haskell.packages set!"
(compose.__generateOptparseApplicativeCompletion exeName pkg);

/*
Modify a Haskell package to add shell completion scripts for the
Expand Down

0 comments on commit 9e9b7f4

Please sign in to comment.