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
Instances4Package
Package 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.Package