File tree 2 files changed +5
-4
lines changed
cabal-install/tests/UnitTests/Distribution/Solver/Modular
cabal-install-solver/src/Distribution/Solver/Types
2 files changed +5
-4
lines changed Original file line number Diff line number Diff line change @@ -52,8 +52,10 @@ data ConstraintScope
52
52
-- | The package with the specified name and qualifier.
53
53
| ScopeQualified Namespace Qualifier PackageName
54
54
55
- -- ROMES:TODO: Should I try to delete this? It will not be easy because it will go down to the constraint syntax
56
- -- Apply a constraint to a private-build-depends scope
55
+ -- TODO Better Comment: Apply a constraint to a private-build-depends scope
56
+ -- It is not sufficient to have ScopeQualified because we don't have enough
57
+ -- information in the constraint syntax to fill in the `Component` field of
58
+ -- `QualAlias`
57
59
| ScopePrivate PackageName PrivateAlias PackageName
58
60
-- | The package with the specified name when it has a
59
61
-- setup qualifier.
@@ -79,7 +81,6 @@ scopeToPackageName (ScopePrivate _ _ pn) = pn
79
81
80
82
-- TODO: Crucial (RM: Why did you write this Matthew?!)
81
83
constraintScopeMatches :: ConstraintScope -> QPN -> Bool
82
- -- constraintScopeMatches cs qpn | traceShow (cs, qpn) False = undefined
83
84
constraintScopeMatches (ScopeTarget pn) (Q (PackagePath ns q) pn') =
84
85
let namespaceMatches DefaultNamespace = True
85
86
namespaceMatches (Independent namespacePn) = pn == namespacePn
Original file line number Diff line number Diff line change @@ -871,7 +871,7 @@ exResolve
871
871
fmap
872
872
( \ p ->
873
873
PackageConstraint
874
- (scopeToplevel (C. mkPackageName p))
874
+ (ScopeAnyQualifier (C. mkPackageName p))
875
875
(PackagePropertyStanzas [TestStanzas ])
876
876
)
877
877
(exDbPkgs db)
You can’t perform that action at this time.
0 commit comments