We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent c0c019b commit 624b8dcCopy full SHA for 624b8dc
cabal-install/src/Distribution/Client/ProjectPlanning.hs
@@ -1026,7 +1026,12 @@ planPackages verbosity comp platform solver SolverSettings{..}
1026
. addPreferences
1027
-- enable stanza preference unilaterally, even when the user asked to enable as well, to help hint the solver.
1028
[ PackageStanzasPreference pkgname [minBound..maxBound]
1029
- | pkgname <- map pkgSpecifierTarget localPackages
+ | pkg <- localPackages
1030
+ , let pkgname = pkgSpecifierTarget pkg
1031
+ stanzaM = Map.findWithDefault Map.empty pkgname pkgStanzasEnable
1032
+ stanzas = [ stanza | stanza <- [minBound..maxBound]
1033
+ , Map.lookup stanza stanzaM /= Just False ]
1034
+ , not (null stanzas)
1035
]
1036
1037
. addConstraints
0 commit comments