Class of things that have a PackageIdentifier
Types in this class are all notions of a package. This allows us to have different types for the different phases that packages go though, from simple name/id, package description, configured or installed packages.
Not all kinds of packages can be uniquely identified by a PackageIdentifier. In particular, installed packages cannot, there may be many installed instances of the same source package.
Methods
packageId :: pkg -> PackageIdentifier
Instances9Package, …
Package LinkedComponentDefined in Cabal-3.12.1.0 · Distribution.Backpack.LinkedComponentPackage PreExistingComponentDefined in Cabal-3.12.1.0 · Distribution.Backpack.PreExistingComponentPackage PromisedComponentDefined in Cabal-3.12.1.0 · Distribution.Backpack.PreExistingComponentPackage ReadyComponentDefined in Cabal-3.12.1.0 · Distribution.Backpack.ReadyComponentPackage GenericPackageDescriptionDefined in Cabal-syntax-3.12.1.0 · Distribution.Types.GenericPackageDescriptionPackage InstalledPackageInfoDefined in Cabal-syntax-3.12.1.0 · Distribution.Types.InstalledPackageInfoPackage PackageDescriptionDefined in Cabal-syntax-3.12.1.0 · Distribution.Types.PackageDescriptionPackage PackageIdentifierDefined in Cabal-syntax-3.12.1.0 · Distribution.PackagePackage (AnnotatedId id)Defined in Cabal-3.12.1.0 · Distribution.Types.AnnotatedId