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

Safe Haskell | None
Language | Haskell2010

Distribution.Solver.Types.SourcePackage

Synopsis

- type PackageDescriptionOverride = Maybe ByteString
- data SourcePackage loc = SourcePackage {
  - srcpkgPackageId :: PackageId
  - srcpkgDescription :: GenericPackageDescription
  - srcpkgSource :: loc
  - srcpkgDescrOverride :: PackageDescriptionOverride
  }

# Documentation

type PackageDescriptionOverride = Maybe ByteString Source #

We sometimes need to override the .cabal file in the tarball with the newer one from the package index.

data SourcePackage loc Source #

A package description along with the location of the package sources.

Constructors

SourcePackage |

Fields

- srcpkgPackageId :: PackageId
- srcpkgDescription :: GenericPackageDescription

  Note, this field is lazy, e.g. when reading in hackage index we parse only what we need, not whole index.

- srcpkgSource :: loc
- srcpkgDescrOverride :: PackageDescriptionOverride

#### Instances

Instances details

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

Instance details

Defined in Distribution.Solver.Types.SourcePackage

Associated Types

type Rep (SourcePackage loc) |

Instance details

Defined in Distribution.Solver.Types.SourcePackage

type Rep (SourcePackage loc) = D1 ('MetaData "SourcePackage" "Distribution.Solver.Types.SourcePackage" "cabal-install-solver-3.12.1.0-5dSETZK2idVHohhzkfJS3u" 'False) (C1 ('MetaCons "SourcePackage" 'PrefixI 'True) ((S1 ('MetaSel ('Just "srcpkgPackageId") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedLazy) (Rec0 PackageId) :*: S1 ('MetaSel ('Just "srcpkgDescription") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedLazy) (Rec0 GenericPackageDescription)) :*: (S1 ('MetaSel ('Just "srcpkgSource") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedLazy) (Rec0 loc) :*: S1 ('MetaSel ('Just "srcpkgDescrOverride") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedLazy) (Rec0 PackageDescriptionOverride))))

Methods

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

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

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

Instance details

Defined in Distribution.Solver.Types.SourcePackage

type Rep (SourcePackage loc) = D1 ('MetaData "SourcePackage" "Distribution.Solver.Types.SourcePackage" "cabal-install-solver-3.12.1.0-5dSETZK2idVHohhzkfJS3u" 'False) (C1 ('MetaCons "SourcePackage" 'PrefixI 'True) ((S1 ('MetaSel ('Just "srcpkgPackageId") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedLazy) (Rec0 PackageId) :*: S1 ('MetaSel ('Just "srcpkgDescription") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedLazy) (Rec0 GenericPackageDescription)) :*: (S1 ('MetaSel ('Just "srcpkgSource") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedLazy) (Rec0 loc) :*: S1 ('MetaSel ('Just "srcpkgDescrOverride") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedLazy) (Rec0 PackageDescriptionOverride))))