From d15c641600c83d0784578f6340062f08b0234b3b Mon Sep 17 00:00:00 2001 From: Yvan Sraka Date: Tue, 12 Sep 2023 20:13:11 +0200 Subject: [PATCH] Deprecated `--solver` CLI option --- cabal-install/src/Distribution/Client/Setup.hs | 2 +- doc/cabal-commands.rst | 2 +- doc/cabal-project.rst | 4 ++++ 3 files changed, 6 insertions(+), 2 deletions(-) diff --git a/cabal-install/src/Distribution/Client/Setup.hs b/cabal-install/src/Distribution/Client/Setup.hs index 44224d9559b..5dd10f2be9a 100644 --- a/cabal-install/src/Distribution/Client/Setup.hs +++ b/cabal-install/src/Distribution/Client/Setup.hs @@ -3324,7 +3324,7 @@ optionSolver get set = option [] ["solver"] - ("Select dependency solver to use (default: " ++ prettyShow defaultSolver ++ "). Choices: " ++ allSolvers ++ ".") + ("[DEPRECATED] Select dependency solver to use (default: " ++ prettyShow defaultSolver ++ "). Choices: " ++ allSolvers ++ ".") get set ( reqArg diff --git a/doc/cabal-commands.rst b/doc/cabal-commands.rst index 1c0776602ed..42788d5acda 100644 --- a/doc/cabal-commands.rst +++ b/doc/cabal-commands.rst @@ -451,7 +451,7 @@ builds with ``cabal build`` are performed with the compiler - Any flag accepted by ``cabal configure`` beyond ``./Setup configure``, namely ``--cabal-lib-version``, - ``--constraint``, ``--preference`` and ``--solver.`` + ``--constraint`` and ``--preference``. - Any flag accepted by ``cabal install`` beyond ``./Setup configure``. diff --git a/doc/cabal-project.rst b/doc/cabal-project.rst index 90f819a529c..0c563275b80 100644 --- a/doc/cabal-project.rst +++ b/doc/cabal-project.rst @@ -1684,6 +1684,10 @@ Most users generally won't need these. The command line variant of this field is ``--solver=modular``. + .. warning:: + + This CLI option has been deprecated and will be removed in a future release. + .. cfg-field:: max-backjumps: nat --max-backjumps=N :synopsis: Maximum number of solver backjumps.