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

Safe Haskell | None
Language | Haskell2010

Distribution.Solver.Types.SolverPackage

Synopsis

- data SolverPackage loc = SolverPackage {
  - solverPkgSource :: SourcePackage loc
  - solverPkgFlags :: FlagAssignment
  - solverPkgStanzas :: OptionalStanzaSet
  - solverPkgLibDeps :: ComponentDeps [SolverId]
  - solverPkgExeDeps :: ComponentDeps [SolverId]
  }

# Documentation

data SolverPackage loc Source #

A `SolverPackage` is a package specified by the dependency solver. It will get elaborated into a `ConfiguredPackage` or even an `ElaboratedConfiguredPackage`.

NB: `SolverPackage`s are essentially always with `UnresolvedPkgLoc`, but for symmetry we have the parameter. (Maybe it can be removed.)

Constructors

SolverPackage |

Fields

- solverPkgSource :: SourcePackage loc
- solverPkgFlags :: FlagAssignment
- solverPkgStanzas :: OptionalStanzaSet
- solverPkgLibDeps :: ComponentDeps [SolverId]
- solverPkgExeDeps :: ComponentDeps [SolverId]

#### Instances

Instances details

Package (SolverPackage loc) Source # |
Instance details Defined in Distribution.Solver.Types.SolverPackage Methods packageId :: SolverPackage loc -> PackageIdentifier Source #
Structured loc => Structured (SolverPackage loc) Source # |
Instance details Defined in Distribution.Solver.Types.SolverPackage Methods structure :: Proxy (SolverPackage loc) -> Structure Source # structureHash' :: Tagged (SolverPackage loc) MD5
Binary loc => Binary (SolverPackage loc) Source # |
Instance details Defined in Distribution.Solver.Types.SolverPackage Methods put :: SolverPackage loc -> Put Source # get :: Get (SolverPackage loc) Source # putList :: [SolverPackage loc] -> Put Source #
Generic (SolverPackage loc) Source # |

Instance details

Defined in Distribution.Solver.Types.SolverPackage

Associated Types

type Rep (SolverPackage loc) |

Instance details

Defined in Distribution.Solver.Types.SolverPackage

type Rep (SolverPackage loc) = D1 ('MetaData "SolverPackage" "Distribution.Solver.Types.SolverPackage" "cabal-install-solver-3.12.1.0-5dSETZK2idVHohhzkfJS3u" 'False) (C1 ('MetaCons "SolverPackage" 'PrefixI 'True) ((S1 ('MetaSel ('Just "solverPkgSource") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedLazy) (Rec0 (SourcePackage loc)) :*: S1 ('MetaSel ('Just "solverPkgFlags") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedLazy) (Rec0 FlagAssignment)) :*: (S1 ('MetaSel ('Just "solverPkgStanzas") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedLazy) (Rec0 OptionalStanzaSet) :*: (S1 ('MetaSel ('Just "solverPkgLibDeps") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedLazy) (Rec0 (ComponentDeps [SolverId])) :*: S1 ('MetaSel ('Just "solverPkgExeDeps") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedLazy) (Rec0 (ComponentDeps [SolverId]))))))

Methods

from :: SolverPackage loc -> Rep (SolverPackage loc) x Source #

to :: Rep (SolverPackage loc) x -> SolverPackage loc Source #

Show loc => Show (SolverPackage loc) Source # |
Instance details Defined in Distribution.Solver.Types.SolverPackage Methods showsPrec :: Int -> SolverPackage loc -> ShowS Source # show :: SolverPackage loc -> String Source # showList :: [SolverPackage loc] -> ShowS Source #
Eq loc => Eq (SolverPackage loc) Source # |
Instance details Defined in Distribution.Solver.Types.SolverPackage Methods (==) :: SolverPackage loc -> SolverPackage loc -> Bool Source # (/=) :: SolverPackage loc -> SolverPackage loc -> Bool Source #
type Rep (SolverPackage loc) Source # |

Instance details

Defined in Distribution.Solver.Types.SolverPackage

type Rep (SolverPackage loc) = D1 ('MetaData "SolverPackage" "Distribution.Solver.Types.SolverPackage" "cabal-install-solver-3.12.1.0-5dSETZK2idVHohhzkfJS3u" 'False) (C1 ('MetaCons "SolverPackage" 'PrefixI 'True) ((S1 ('MetaSel ('Just "solverPkgSource") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedLazy) (Rec0 (SourcePackage loc)) :*: S1 ('MetaSel ('Just "solverPkgFlags") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedLazy) (Rec0 FlagAssignment)) :*: (S1 ('MetaSel ('Just "solverPkgStanzas") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedLazy) (Rec0 OptionalStanzaSet) :*: (S1 ('MetaSel ('Just "solverPkgLibDeps") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedLazy) (Rec0 (ComponentDeps [SolverId])) :*: S1 ('MetaSel ('Just "solverPkgExeDeps") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedLazy) (Rec0 (ComponentDeps [SolverId]))))))