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
606f474e
Commit
606f474e
authored
Jun 06, 2008
by
Duncan Coutts
Browse files
trivial doc improvement and unused name fix
parent
d57bf92f
Changes
2
Hide whitespace changes
Inline
Side-by-side
cabal-install/Hackage/InstallPlan.hs
View file @
606f474e
...
...
@@ -261,8 +261,8 @@ lookupConfiguredPackage' :: InstallPlan a
->
PackageIdentifier
->
Maybe
ConfiguredPackage
lookupConfiguredPackage'
plan
pkgid
=
case
PackageIndex
.
lookupPackageId
(
planIndex
plan
)
pkgid
of
Just
(
Configured
pkg
)
->
Just
pkg
Just
(
Failed
_
reason
)
->
Nothing
Just
(
Configured
pkg
)
->
Just
pkg
Just
(
Failed
_
_
)
->
Nothing
_
->
internalError
$
"not configured or no such pkg "
++
display
pkgid
-- ------------------------------------------------------------
...
...
cabal-install/Hackage/Types.hs
View file @
606f474e
...
...
@@ -29,8 +29,10 @@ newtype Password = Password { unPassword :: String }
data
ConfiguredPackage
=
ConfiguredPackage
AvailablePackage
-- package info, including repo
FlagAssignment
-- complete flag assignment for the package
[
PackageIdentifier
]
-- exact dependencies, must be consistent with the
-- version constraints in the package info
[
PackageIdentifier
]
-- set of exact dependencies. These must be
-- consistent with the 'buildDepends' in the
-- 'PackageDescrption' that you'd get by applying
-- the flag assignment.
deriving
Show
instance
Package
ConfiguredPackage
where
...
...
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