Commit bb08006d authored by Edward Z. Yang's avatar Edward Z. Yang
Browse files

Don't provide --constraints when pkgComponent is Just.


Signed-off-by: default avatarEdward Z. Yang <ezyang@cs.stanford.edu>
parent 4e782d65
......@@ -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
......
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment