haskell.lib.compose.addOptparseApplicativeCompletionScripts: remove

This function was deprecated when it was first added to
haskell.lib.compose, so we can probably safely drop it.
This commit is contained in:
sternenseemann 2022-09-10 00:47:22 +02:00
parent ac1f1ad0e0
commit 9e9b7f4d99
2 changed files with 3 additions and 5 deletions

View file

@ -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!

View file

@ -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