From 96e545059026040eefa158fbc564a78546a0d43c Mon Sep 17 00:00:00 2001 From: Kristen Kozak Date: Mon, 23 Oct 2017 01:07:48 -0700 Subject: [PATCH] Apply 'any' qualifier to new-freeze constraints (fixes #4832). new-freeze produces constraints that allow all versions of each package from the install plan, in order to constrain setup and build tool dependencies without using qualified constraints. Since the constraints should apply to top-level, setup, and build tool dependencies, they should use an 'any' qualifier. --- cabal-install/Distribution/Client/CmdFreeze.hs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/cabal-install/Distribution/Client/CmdFreeze.hs b/cabal-install/Distribution/Client/CmdFreeze.hs index 8e33865fac1..a37ee6f1b15 100644 --- a/cabal-install/Distribution/Client/CmdFreeze.hs +++ b/cabal-install/Distribution/Client/CmdFreeze.hs @@ -173,7 +173,7 @@ projectFreezeConstraints plan = versionConstraints :: Map PackageName [(UserConstraint, ConstraintSource)] versionConstraints = Map.mapWithKey - (\p v -> [(UserConstraint (UserQualified UserQualToplevel p) (PackagePropertyVersion v), + (\p v -> [(UserConstraint (UserAnyQualifier p) (PackagePropertyVersion v), ConstraintSourceFreeze)]) versionRanges