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 9e5e815 commit d079583Copy full SHA for d079583
cabal-install-solver/src/Distribution/Solver/Modular.hs
@@ -66,7 +66,9 @@ modularResolver sc (Platform arch os) cinfo iidx sidx pkgConfigDB pprefs pcs pns
66
-- Indices have to be converted into solver-specific uniform index.
67
idx = convPIs os arch cinfo gcs (shadowPkgs sc) (strongFlags sc) (solveExecutables sc) iidx sidx
68
-- Constraints have to be converted into a finite map indexed by PN.
69
- gcs = M.fromListWith (++) (map pair pcs)
+ -- Preserve the order of the constraints, countering fromListWith
70
+ -- reversing the order by using flip (++).
71
+ gcs = M.fromListWith (flip (++)) (map pair pcs)
72
where
73
pair lpc = (pcName $ unlabelPackageConstraint lpc, [lpc])
74
0 commit comments