Safe Haskell | Safe-Inferred |
---|---|
Language | Haskell2010 |
Distribution.Client.Types.SourcePackageDb
Synopsis
- data SourcePackageDb = SourcePackageDb {
- packageIndex :: PackageIndex UnresolvedSourcePackage
- packagePreferences :: Map PackageName VersionRange
- lookupDependency :: SourcePackageDb -> PackageName -> VersionRange -> [UnresolvedSourcePackage]
- lookupPackageName :: SourcePackageDb -> PackageName -> [UnresolvedSourcePackage]
Documentation
data SourcePackageDb Source #
This is the information we get from a 00-index.tar.gz
hackage index.
Constructors
SourcePackageDb | |
Fields
|
Instances
Generic SourcePackageDb Source # | |
Defined in Distribution.Client.Types.SourcePackageDb Associated Types type Rep SourcePackageDb :: Type -> Type Methods from :: SourcePackageDb -> Rep SourcePackageDb x to :: Rep SourcePackageDb x -> SourcePackageDb | |
Binary SourcePackageDb Source # | |
Defined in Distribution.Client.Types.SourcePackageDb | |
Eq SourcePackageDb Source # | |
Defined in Distribution.Client.Types.SourcePackageDb Methods (==) :: SourcePackageDb -> SourcePackageDb -> Bool (/=) :: SourcePackageDb -> SourcePackageDb -> Bool | |
type Rep SourcePackageDb Source # | |
Defined in Distribution.Client.Types.SourcePackageDb type Rep SourcePackageDb = D1 ('MetaData "SourcePackageDb" "Distribution.Client.Types.SourcePackageDb" "cabal-install-3.8.1.0-CiByXgAz4HmCCkgLTHZiBJ" 'False) (C1 ('MetaCons "SourcePackageDb" 'PrefixI 'True) (S1 ('MetaSel ('Just "packageIndex") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedLazy) (Rec0 (PackageIndex UnresolvedSourcePackage)) :*: S1 ('MetaSel ('Just "packagePreferences") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedLazy) (Rec0 (Map PackageName VersionRange)))) |
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