Distribution.Types.GivenComponent

Cabal-3.0.0.0: A framework for packaging Haskell software

Safe Haskell | None
Language | Haskell2010

Distribution.Types.GivenComponent

Synopsis

- data GivenComponent = GivenComponent {
  - givenComponentPackage :: PackageName
  - givenComponentName :: LibraryName
  - givenComponentId :: ComponentId
  }

# Documentation

data GivenComponent Source #

A `GivenComponent` represents a library depended on and explicitly specified by the user/client with `--dependency`

It enables Cabal to know which `ComponentId` to associate with a library

Since: Cabal-2.3.0.0

Constructors

GivenComponent |
Fields givenComponentPackage :: PackageName givenComponentName :: LibraryName givenComponentId :: ComponentId

#### Instances

Instances details

Eq GivenComponent # |
Instance details Defined in Distribution.Types.GivenComponent Methods (==) :: GivenComponent -> GivenComponent -> Bool # (/=) :: GivenComponent -> GivenComponent -> Bool #
Read GivenComponent # |
Instance details Defined in Distribution.Types.GivenComponent Methods readsPrec :: Int -> ReadS GivenComponent Source # readList :: ReadS [GivenComponent] Source # readPrec :: ReadPrec GivenComponent Source # readListPrec :: ReadPrec [GivenComponent] Source #
Show GivenComponent # |
Instance details Defined in Distribution.Types.GivenComponent Methods showsPrec :: Int -> GivenComponent -> ShowS Source # show :: GivenComponent -> String Source # showList :: [GivenComponent] -> ShowS Source #
Generic GivenComponent # |
Instance details Defined in Distribution.Types.GivenComponent Associated Types type Rep GivenComponent :: Type -> Type Source # Methods from :: GivenComponent -> Rep GivenComponent x Source # to :: Rep GivenComponent x -> GivenComponent Source #
Binary GivenComponent # |
Instance details Defined in Distribution.Types.GivenComponent Methods put :: GivenComponent -> Put Source # get :: Get GivenComponent Source # putList :: [GivenComponent] -> Put Source #
type Rep GivenComponent # |
Instance details Defined in Distribution.Types.GivenComponent type Rep GivenComponent = D1 ('MetaData "GivenComponent" "Distribution.Types.GivenComponent" "Cabal-3.0.0.0" 'False) (C1 ('MetaCons "GivenComponent" 'PrefixI 'True) (S1 ('MetaSel ('Just "givenComponentPackage") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedLazy) (Rec0 PackageName) :*: (S1 ('MetaSel ('Just "givenComponentName") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedLazy) (Rec0 LibraryName) :*: S1 ('MetaSel ('Just "givenComponentId") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedLazy) (Rec0 ComponentId))))