Distribution.Solver.Types.SourcePackage

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 #

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

data SourcePackage loc #

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) # |
Instance details Defined in Distribution.Solver.Types.SourcePackage Methods packageId :: SourcePackage a -> PackageIdentifier #
Structured loc => Structured (SourcePackage loc) # |
Instance details Defined in Distribution.Solver.Types.SourcePackage Methods structure :: Proxy (SourcePackage loc) -> Structure # structureHash' :: Tagged (SourcePackage loc) MD5
Binary loc => Binary (SourcePackage loc) # |
Instance details Defined in Distribution.Solver.Types.SourcePackage Methods put :: SourcePackage loc -> Put # get :: Get (SourcePackage loc) # putList :: [SourcePackage loc] -> Put #
Generic (SourcePackage loc) # |
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-BcLJX5rVQuejx1qrKAH5j" '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 # to :: Rep (SourcePackage loc) x -> SourcePackage loc #
Show loc => Show (SourcePackage loc) # |
Instance details Defined in Distribution.Solver.Types.SourcePackage Methods showsPrec :: Int -> SourcePackage loc -> ShowS # show :: SourcePackage loc -> String # showList :: [SourcePackage loc] -> ShowS #
Eq loc => Eq (SourcePackage loc) # |
Instance details Defined in Distribution.Solver.Types.SourcePackage Methods (==) :: SourcePackage loc -> SourcePackage loc -> Bool # (/=) :: SourcePackage loc -> SourcePackage loc -> Bool #
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-BcLJX5rVQuejx1qrKAH5j" '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))))