Skip to content

Commit

Permalink
[WIP] Remove CLI option
Browse files Browse the repository at this point in the history
  • Loading branch information
yvan-sraka committed Oct 28, 2023
1 parent 3299ab5 commit ab35390
Show file tree
Hide file tree
Showing 3 changed files with 1 addition and 6 deletions.
1 change: 0 additions & 1 deletion cabal-install/src/Distribution/Client/Config.hs
Original file line number Diff line number Diff line change
Expand Up @@ -547,7 +547,6 @@ instance Semigroup SavedConfig where
configExConstraints = lastNonEmpty configExConstraints
, -- TODO: NubListify
configPreferences = lastNonEmpty configPreferences
, configSolver = combine configSolver
, configAllowNewer =
combineMonoid savedConfigureExFlags configAllowNewer
, configAllowOlder =
Expand Down
2 changes: 0 additions & 2 deletions cabal-install/src/Distribution/Client/ProjectConfig/Legacy.hs
Original file line number Diff line number Diff line change
Expand Up @@ -641,7 +641,6 @@ convertLegacyAllPackageFlags globalFlags configFlags configExFlags installFlags
{ configCabalVersion = projectConfigCabalVersion
, configExConstraints = projectConfigConstraints
, configPreferences = projectConfigPreferences
, configSolver = projectConfigSolver
, configAllowOlder = projectConfigAllowOlder
, configAllowNewer = projectConfigAllowNewer
, configWriteGhcEnvironmentFilesPolicy =
Expand Down Expand Up @@ -911,7 +910,6 @@ convertToLegacySharedConfig
, configBackup = mempty
, configExConstraints = projectConfigConstraints
, configPreferences = projectConfigPreferences
, configSolver = projectConfigSolver
, configAllowOlder = projectConfigAllowOlder
, configAllowNewer = projectConfigAllowNewer
, configWriteGhcEnvironmentFilesPolicy =
Expand Down
4 changes: 1 addition & 3 deletions cabal-install/src/Distribution/Client/Setup.hs
Original file line number Diff line number Diff line change
Expand Up @@ -829,7 +829,6 @@ data ConfigExFlags = ConfigExFlags
, configBackup :: Flag Bool
, configExConstraints :: [(UserConstraint, ConstraintSource)]
, configPreferences :: [PackageVersionConstraint]
, configSolver :: Flag PreSolver
, configAllowNewer :: Maybe AllowNewer
, configAllowOlder :: Maybe AllowOlder
, configWriteGhcEnvironmentFilesPolicy
Expand All @@ -838,7 +837,7 @@ data ConfigExFlags = ConfigExFlags
deriving (Eq, Show, Generic)

defaultConfigExFlags :: ConfigExFlags
defaultConfigExFlags = mempty{configSolver = Flag defaultSolver}
defaultConfigExFlags = mempty

configureExCommand :: CommandUI (ConfigFlags, ConfigExFlags)
configureExCommand =
Expand Down Expand Up @@ -923,7 +922,6 @@ configureExOptions _showOrParseArgs src =
)
(map prettyShow)
)
, optionSolver configSolver (\v flags -> flags{configSolver = v})
, option
[]
["allow-older"]
Expand Down

0 comments on commit ab35390

Please sign in to comment.