-
Notifications
You must be signed in to change notification settings - Fork 697
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Dependency as constraint vs Dependency as dependency #5570
Milestone
Comments
phadej
added a commit
to phadej/cabal
that referenced
this issue
May 8, 2020
First step towards haskell#5570
phadej
added a commit
to phadej/cabal
that referenced
this issue
May 8, 2020
First step towards haskell#5570
phadej
added a commit
to phadej/cabal
that referenced
this issue
May 8, 2020
First step towards haskell#5570
sternenseemann
added a commit
to sternenseemann/cabal2nix
that referenced
this issue
Jun 10, 2021
finalizePD uses PackageVersionConstraint instead of dependency since 3.4.0.0 (see also haskell/cabal#5570). This is a bit annoying since we need to do some CPP-stuff to support both 3.2.* and 3.4.0.0, but it is a good opportunity to clean up our use of Dependency: Since we always ignore the `LibraryName`s in `Dependency` and it is required to be a `NonEmptySet` since 3.4.0.0, we switch to using the simpler `PackageVersionConstraint` which doesn't care about `LibraryName` at all (just like us).
sternenseemann
added a commit
to sternenseemann/cabal2nix
that referenced
this issue
Jun 10, 2021
finalizePD uses PackageVersionConstraint instead of dependency since 3.4.0.0 (see also haskell/cabal#5570). This is a bit annoying since we need to do some CPP-stuff to support both 3.2.* and 3.4.0.0, but it is a good opportunity to clean up our use of Dependency: Since we always ignore the `LibraryName`s in `Dependency` and it is required to be a `NonEmptySet` since 3.4.0.0, we switch to using the simpler `PackageVersionConstraint` which doesn't care about `LibraryName` at all (just like us).
Profpatsch
pushed a commit
to Profpatsch/cabal2nix
that referenced
this issue
Mar 7, 2022
finalizePD uses PackageVersionConstraint instead of dependency since 3.4.0.0 (see also haskell/cabal#5570). This is a bit annoying since we need to do some CPP-stuff to support both 3.2.* and 3.4.0.0, but it is a good opportunity to clean up our use of Dependency: Since we always ignore the `LibraryName`s in `Dependency` and it is required to be a `NonEmptySet` since 3.4.0.0, we switch to using the simpler `PackageVersionConstraint` which doesn't care about `LibraryName` at all (just like us).
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Just opening this to keep track of how Dependency is used throughout the codebase for when we'll split it
See https://github.com/fgaz/gsoc/blob/master/2018/final-report.md#the-dependency-as-constraint-problem
Dependency
as constraintconfigConstraints
Client/Outdated
andpackageConstraintToDependency
lookupDependency
sDependency
as dependency on librarybuild-depends
obviouslysetup-depends
DependencyMap
and similarDependency
as "dependency" (more like... package source? hint? it's not even used..) on packageProjectConfig.projectPackagesNamed
Other things to remove when doing the refactor:
Types/Dependency.hs
:thisPackageVersion
notThisPackageVersion
The text was updated successfully, but these errors were encountered: