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
65e9b88b
Commit
65e9b88b
authored
Apr 09, 2014
by
Herbert Valerio Riedel
🕺
Browse files
Add `integer-{gmp,simple}` and `template-haskell` to list of non-upgradables
This is related to #667 and similiar issues
parent
3c7a7408
Changes
2
Hide whitespace changes
Inline
Side-by-side
cabal-install/Distribution/Client/Dependency.hs
View file @
65e9b88b
...
...
@@ -228,7 +228,8 @@ dontUpgradeBasePackage params =
extraConstraints
=
[
PackageConstraintInstalled
pkgname
|
all
(
/=
PackageName
"base"
)
(
depResolverTargets
params
)
,
pkgname
<-
[
PackageName
"base"
,
PackageName
"ghc-prim"
]
,
pkgname
<-
map
PackageName
[
"base"
,
"ghc-prim"
,
"integer-gmp"
,
"integer-simple"
,
"template-haskell"
]
,
isInstalled
pkgname
]
-- TODO: the top down resolver chokes on the base constraints
-- below when there are no targets and thus no dep on base.
...
...
cabal-install/Distribution/Client/Dependency/Modular/Solver.hs
View file @
65e9b88b
...
...
@@ -49,6 +49,10 @@ solve sc idx userPrefs userConstraints userGoals =
validateTree
idx
prunePhase
=
(
if
avoidReinstalls
sc
then
P
.
avoidReinstalls
(
const
True
)
else
id
)
.
-- packages that can never be "upgraded":
P
.
requireInstalled
(`
elem
`
[
PackageName
"base"
,
PackageName
"ghc-prim"
])
P
.
requireInstalled
(`
elem
`
[
PackageName
"base"
,
PackageName
"ghc-prim"
,
PackageName
"integer-gmp"
,
PackageName
"integer-simple"
,
PackageName
"template-haskell"
])
buildPhase
=
buildTree
idx
(
independentGoals
sc
)
userGoals
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