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
Glasgow Haskell Compiler
Packages
Cabal
Commits
44027f94
Commit
44027f94
authored
9 years ago
by
Edsko de Vries
Browse files
Options
Downloads
Patches
Plain Diff
Explain what linking is
Addresses
https://github.com/haskell/cabal/pull/2500#commitcomment-10455644
.
parent
776e9e2c
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/Modular/Tree.hs
+16
-2
16 additions, 2 deletions
cabal-install/Distribution/Client/Dependency/Modular/Tree.hs
with
16 additions
and
2 deletions
cabal-install/Distribution/Client/Dependency/Modular/Tree.hs
+
16
−
2
View file @
44027f94
...
@@ -30,8 +30,22 @@ data Tree a =
...
@@ -30,8 +30,22 @@ data Tree a =
-- the system, as opposed to flags that are used to explicitly enable or
-- the system, as opposed to flags that are used to explicitly enable or
-- disable some functionality.
-- disable some functionality.
-- | A package option is an instance, together with an optional annotation that
-- | A package option is a package instance with an optional linking annotation
-- this package is linked to the same package with another prefix
--
-- The modular solver has a number of package goals to solve for, and can only
-- pick a single package version for a single goal. In order to allow to
-- install multiple versions of the same package as part of a single solution
-- the solver uses qualified goals. For example, @0.P@ and @1.P@ might both
-- be qualified goals for @P@, allowing to pick a difference version of package
-- @P@ for @0.P@ and @1.P@.
--
-- Linking is an essential part of this story. In addition to picking a specific
-- version for @1.P@, the solver can also decide to link @1.P@ to @0.P@ (or
-- vice versa). Teans that @1.P@ and @0.P@ really must be the very same package
-- (and hence must have the same build time configuration, and their
-- dependencies must also be the exact same).
--
-- See <http://www.well-typed.com/blog/2015/03/qualified-goals/> for details.
data
POption
=
POption
I
(
Maybe
PP
)
data
POption
=
POption
I
(
Maybe
PP
)
deriving
(
Eq
,
Show
)
deriving
(
Eq
,
Show
)
...
...
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