Distribution.Client.Types.ConfiguredPackage

cabal-install-3.12.1.0: The command-line interface for Cabal and Hackage.

Safe Haskell | None
Language | Haskell2010

Distribution.Client.Types.ConfiguredPackage

Synopsis

- data ConfiguredPackage loc = ConfiguredPackage {
  - confPkgId :: InstalledPackageId
  - confPkgSource :: SourcePackage loc
  - confPkgFlags :: FlagAssignment
  - confPkgStanzas :: OptionalStanzaSet
  - confPkgDeps :: ComponentDeps [ConfiguredId]
  }

# Documentation

data ConfiguredPackage loc #

A `ConfiguredPackage` is a not-yet-installed package along with the total configuration information. The configuration information is total in the sense that it provides all the configuration information and so the final configure process will be independent of the environment.

`ConfiguredPackage` is assumed to not support Backpack. Only the `v2-build` codepath supports Backpack.

Constructors

ConfiguredPackage |
Fields confPkgId :: InstalledPackageId confPkgSource :: SourcePackage loc package info, including repo confPkgFlags :: FlagAssignment complete flag assignment for the package confPkgStanzas :: OptionalStanzaSet list of enabled optional stanzas for the package confPkgDeps :: ComponentDeps [ConfiguredId] set of exact dependencies (installed or source). These must be consistent with the `buildDepends` in the `PackageDescription` that you'd get by applying the flag assignment and optional stanzas.

#### Instances

Instances details

IsNode (ConfiguredPackage loc) # |
Instance details Defined in Distribution.Client.Types.ConfiguredPackage Associated Types
type Key (ConfiguredPackage loc) |
Instance details Defined in Distribution.Client.Types.ConfiguredPackage type Key (ConfiguredPackage loc) = UnitId
Methods nodeKey :: ConfiguredPackage loc -> Key (ConfiguredPackage loc) # nodeNeighbors :: ConfiguredPackage loc -> [Key (ConfiguredPackage loc)] #
HasMungedPackageId (ConfiguredPackage loc) # |
Instance details Defined in Distribution.Client.Types.ConfiguredPackage Methods mungedId :: ConfiguredPackage loc -> MungedPackageId #
HasUnitId (ConfiguredPackage loc) # |
Instance details Defined in Distribution.Client.Types.ConfiguredPackage Methods installedUnitId :: ConfiguredPackage loc -> UnitId #
Package (ConfiguredPackage loc) # |
Instance details Defined in Distribution.Client.Types.ConfiguredPackage Methods packageId :: ConfiguredPackage loc -> PackageIdentifier #
PackageInstalled (ConfiguredPackage loc) # |
Instance details Defined in Distribution.Client.Types.ConfiguredPackage Methods installedDepends :: ConfiguredPackage loc -> [UnitId] #
Binary loc => Binary (ConfiguredPackage loc) # |
Instance details Defined in Distribution.Client.Types.ConfiguredPackage Methods put :: ConfiguredPackage loc -> Put # get :: Get (ConfiguredPackage loc) # putList :: [ConfiguredPackage loc] -> Put #
HasConfiguredId (ConfiguredPackage loc) # | `HasConfiguredId` indicates data types which have a `ConfiguredId`. This type class is mostly used to conveniently finesse between `ElaboratedPackage` and `ElaboratedComponent`.
Instance details Defined in Distribution.Client.Types.ConfiguredPackage Methods configuredId :: ConfiguredPackage loc -> ConfiguredId #
PackageFixedDeps (ConfiguredPackage loc) # |
Instance details Defined in Distribution.Client.Types.ConfiguredPackage Methods depends :: ConfiguredPackage loc -> ComponentDeps [UnitId] #
Generic (ConfiguredPackage loc) # |
Instance details Defined in Distribution.Client.Types.ConfiguredPackage Associated Types
type Rep (ConfiguredPackage loc) |
Instance details Defined in Distribution.Client.Types.ConfiguredPackage type Rep (ConfiguredPackage loc) = D1 ('MetaData "ConfiguredPackage" "Distribution.Client.Types.ConfiguredPackage" "cabal-install-3.12.1.0-G554PkJj2SpDqyarXp9tbt" 'False) (C1 ('MetaCons "ConfiguredPackage" 'PrefixI 'True) ((S1 ('MetaSel ('Just "confPkgId") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedLazy) (Rec0 InstalledPackageId) :*: S1 ('MetaSel ('Just "confPkgSource") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedLazy) (Rec0 (SourcePackage loc))) :*: (S1 ('MetaSel ('Just "confPkgFlags") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedLazy) (Rec0 FlagAssignment) :*: (S1 ('MetaSel ('Just "confPkgStanzas") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedLazy) (Rec0 OptionalStanzaSet) :*: S1 ('MetaSel ('Just "confPkgDeps") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedLazy) (Rec0 (ComponentDeps [ConfiguredId]))))))
Methods from :: ConfiguredPackage loc -> Rep (ConfiguredPackage loc) x # to :: Rep (ConfiguredPackage loc) x -> ConfiguredPackage loc #
Show loc => Show (ConfiguredPackage loc) # |
Instance details Defined in Distribution.Client.Types.ConfiguredPackage Methods showsPrec :: Int -> ConfiguredPackage loc -> ShowS # show :: ConfiguredPackage loc -> String # showList :: [ConfiguredPackage loc] -> ShowS #
Eq loc => Eq (ConfiguredPackage loc) # |
Instance details Defined in Distribution.Client.Types.ConfiguredPackage Methods (==) :: ConfiguredPackage loc -> ConfiguredPackage loc -> Bool # (/=) :: ConfiguredPackage loc -> ConfiguredPackage loc -> Bool #
type Key (ConfiguredPackage loc) # |
Instance details Defined in Distribution.Client.Types.ConfiguredPackage type Key (ConfiguredPackage loc) = UnitId
type Rep (ConfiguredPackage loc) # |
Instance details Defined in Distribution.Client.Types.ConfiguredPackage type Rep (ConfiguredPackage loc) = D1 ('MetaData "ConfiguredPackage" "Distribution.Client.Types.ConfiguredPackage" "cabal-install-3.12.1.0-G554PkJj2SpDqyarXp9tbt" 'False) (C1 ('MetaCons "ConfiguredPackage" 'PrefixI 'True) ((S1 ('MetaSel ('Just "confPkgId") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedLazy) (Rec0 InstalledPackageId) :*: S1 ('MetaSel ('Just "confPkgSource") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedLazy) (Rec0 (SourcePackage loc))) :*: (S1 ('MetaSel ('Just "confPkgFlags") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedLazy) (Rec0 FlagAssignment) :*: (S1 ('MetaSel ('Just "confPkgStanzas") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedLazy) (Rec0 OptionalStanzaSet) :*: S1 ('MetaSel ('Just "confPkgDeps") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedLazy) (Rec0 (ComponentDeps [ConfiguredId]))))))