Safe Haskell | Safe-Inferred |
---|---|
Language | Haskell2010 |
Distribution.Client.Types.SourcePackageDb
Synopsis
Documentation
data SourcePackageDb Source #
This is the information we get from a 00-index.tar.gz
hackage index.
Constructors
SourcePackageDb | |
Instances
lookupDependency :: SourcePackageDb -> PackageName -> VersionRange -> [UnresolvedSourcePackage] Source #
Does a case-sensitive search by package name and a range of versions.
We get back any number of versions of the specified package name, all satisfying the version range constraint.
Additionally, `preferred-versions` (such as version deprecation) are
honoured in this lookup, which is the only difference to
lookupDependency
lookupPackageName :: SourcePackageDb -> PackageName -> [UnresolvedSourcePackage] Source #
Does a case-sensitive search by package name.
Additionally, `preferred-versions` (such as version deprecation) are
honoured in this lookup, which is the only difference to
lookupPackageName