Skip to content
GitLab
Explore
Sign in
Register
Primary navigation
Search or go to…
Project
C
Cabal
Manage
Activity
Members
Code
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Locked files
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Releases
Package Registry
Container Registry
Model registry
Operate
Environments
Terraform modules
Analyze
Contributor analytics
CI/CD analytics
Repository analytics
Insights
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Terms and privacy
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
Haskell
Cabal
Commits
c6858567
Commit
c6858567
authored
11 years ago
by
Mikhail Glushenkov
Browse files
Options
Downloads
Patches
Plain Diff
Rename a function.
parent
65e9b88b
No related branches found
Branches containing commit
No related tags found
Tags containing commit
No related merge requests found
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
cabal-install/Distribution/Client/Dependency.hs
+7
-5
7 additions, 5 deletions
cabal-install/Distribution/Client/Dependency.hs
with
7 additions
and
5 deletions
cabal-install/Distribution/Client/Dependency.hs
+
7
−
5
View file @
c6858567
...
...
@@ -37,7 +37,7 @@ module Distribution.Client.Dependency (
applySandboxInstallPolicy
,
-- ** Extra policy options
dontUpgradeB
ase
Package
,
dontUpgradeB
uiltin
Package
s
,
hideBrokenInstalledPackages
,
upgradeDependencies
,
reinstallTargets
,
...
...
@@ -221,8 +221,10 @@ setMaxBackjumps n params =
depResolverMaxBackjumps
=
n
}
dontUpgradeBasePackage
::
DepResolverParams
->
DepResolverParams
dontUpgradeBasePackage
params
=
-- | Some packages are specific to a given compiler version and should never be
-- upgraded.
dontUpgradeBuiltinPackages
::
DepResolverParams
->
DepResolverParams
dontUpgradeBuiltinPackages
params
=
addConstraints
extraConstraints
params
where
extraConstraints
=
...
...
@@ -479,7 +481,7 @@ resolveDependencies :: Platform
->
DepResolverParams
->
Progress
String
String
InstallPlan
--TODO: is this needed here? see dontUpgradeB
ase
Package
--TODO: is this needed here? see dontUpgradeB
uiltin
Package
s
resolveDependencies
platform
comp
_solver
params
|
null
(
depResolverTargets
params
)
=
return
(
mkInstallPlan
platform
comp
[]
)
...
...
@@ -501,7 +503,7 @@ resolveDependencies platform comp solver params =
indGoals
noReinstalls
shadowing
maxBkjumps
=
dontUpgradeB
ase
Package
maxBkjumps
=
dontUpgradeB
uiltin
Package
s
-- TODO:
-- The modular solver can properly deal with broken
-- packages and won't select them. So the
...
...
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment