Skip to content
GitLab
Menu
Projects
Groups
Snippets
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Sign in / Register
Toggle navigation
Menu
Open sidebar
Glasgow Haskell Compiler
Packages
Cabal
Commits
bb08006d
Commit
bb08006d
authored
Aug 15, 2016
by
Edward Z. Yang
Browse files
Don't provide --constraints when pkgComponent is Just.
Signed-off-by:
Edward Z. Yang
<
ezyang@cs.stanford.edu
>
parent
4e782d65
Changes
1
Hide whitespace changes
Inline
Side-by-side
cabal-install/Distribution/Client/ProjectPlanning.hs
View file @
bb08006d
...
...
@@ -2168,9 +2168,13 @@ setupHsConfigureFlags (ReadyPackage pkg_or_comp)
case
pkg_or_comp
of
ElabPackage
_
->
CD
.
nonSetupDeps
pkgDependencies
ElabComponent
comp
->
elabComponentDependencies
comp
]
-- TODO: don't need to provide these when pkgComponent is Just
configConstraints
=
[
thisPackageVersion
srcid
|
ConfiguredId
srcid
_uid
<-
CD
.
nonSetupDeps
pkgDependencies
]
configConstraints
=
case
pkg_or_comp
of
ElabPackage
_
->
[
thisPackageVersion
srcid
|
ConfiguredId
srcid
_uid
<-
CD
.
nonSetupDeps
pkgDependencies
]
ElabComponent
_
->
[]
-- explicitly clear, then our package db stack
-- TODO: [required eventually] have to do this differently for older Cabal versions
...
...
Write
Preview
Supports
Markdown
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment