cabal-install-3.8.1.0: The command-line interface for Cabal and Hackage.
Safe HaskellNone
LanguageHaskell2010

Distribution.Client.Types.SourcePackageDb

Synopsis

Documentation

data SourcePackageDb Source #

This is the information we get from a 00-index.tar.gz hackage index.

Instances

Instances details
Eq SourcePackageDb Source # 
Instance details

Defined in Distribution.Client.Types.SourcePackageDb

Generic SourcePackageDb Source # 
Instance details

Defined in Distribution.Client.Types.SourcePackageDb

Associated Types

type Rep SourcePackageDb :: Type -> Type #

Binary SourcePackageDb Source # 
Instance details

Defined in Distribution.Client.Types.SourcePackageDb

type Rep SourcePackageDb Source # 
Instance details

Defined in Distribution.Client.Types.SourcePackageDb

type Rep SourcePackageDb = D1 ('MetaData "SourcePackageDb" "Distribution.Client.Types.SourcePackageDb" "cabal-install-3.8.1.0-7iNu5HGLMqL9QLfLAUJqbd" '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