hix-0.8.0: Haskell/Nix development build tools
Safe HaskellNone
LanguageGHC2021

Hix.Managed.Bump.Optimize

Synopsis

Documentation

bumpSolverParams :: EnvDeps -> CabalHandlers -> Initial MutationState -> EnvConstraints Source #

Solver params for Bump consist of, in decreasing order of precedence:

  • User-specified bounds (added by the constructor solverState).
  • The existing overrides from previous runs, used as preferred versions. This ensures that the solver selects the same versions as in the last run while still allowing newer versions for transitive dependencies that are later in the candidate list.
  • Installed versions from the package db, used as lower bounds.
  • The preference for using the installed version for mutable deps, which is a fallback for packages without overrides (since their chosen versions are installed).