Skip to content
GitLab
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
9f4686ef
Commit
9f4686ef
authored
May 04, 2008
by
Duncan Coutts
Browse files
Update for flipped order of args for PackageIndex.insert
parent
b304416f
Changes
2
Hide whitespace changes
Inline
Side-by-side
cabal-install/Hackage/Install.hs
View file @
9f4686ef
...
...
@@ -139,7 +139,7 @@ installLocalPackage verbosity packageDB repos comp conf miscOptions configFlags
let
-- The trick is, we add the local package to the available index and
-- then ask to resolve a dependency on exactly that package. So the
-- resolver ends up having to pick the local package.
available'
=
PackageIndex
.
insert
available
localPackage
available'
=
PackageIndex
.
insert
localPackage
available
localPackage
=
AvailablePackage
{
packageInfoId
=
packageId
desc
,
Available
.
packageDescription
=
desc
,
...
...
cabal-install/Hackage/InstallPlan.hs
View file @
9f4686ef
...
...
@@ -261,7 +261,7 @@ completed :: PackageIdentifier
->
InstallPlan
buildResult
->
InstallPlan
buildResult
completed
pkgid
plan
=
case
PackageIndex
.
lookupPackageId
index
pkgid
of
Just
(
Configured
cp
)
->
plan
{
planIndex
=
PackageIndex
.
insert
index
(
Installed
cp
)
}
Just
(
Configured
cp
)
->
plan
{
planIndex
=
PackageIndex
.
insert
(
Installed
cp
)
index
}
_
->
error
"InstallPlan.completed: internal error; cannot mark package as completed"
where
index
=
planIndex
plan
...
...
Write
Preview
Supports
Markdown
0%
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!
Cancel
Please
register
or
sign in
to comment