HORIZON HASKELLDocslts/ghc-9.10.xc74966e2026-09-27Search names, modules, packages, or :: a typeCtrl K

GHC 9.10.3 · lts/ghc-9.10.x · c74966e · 2026-09-27

Modulecabal-install-solver-3.12.1.0Haskell2010

Distribution.Solver.Types.PackagePreferences

  • 1 type
datadata PackagePreferences
#

Per-package preferences on the version. It is a soft constraint that the DependencyResolver should try to respect where possible. It consists of an InstalledPreference which says if we prefer versions of packages that are already installed. It also has (possibly multiple) PackageVersionPreferences which are suggested constraints on the version number. The resolver should try to use package versions that satisfy the maximum number of the suggested version constraints.

It is not specified if preferences on some packages are more important than others.