cabal-install-parsers-0.4.5: Utilities to work with cabal-install files
Safe HaskellNone
LanguageHaskell2010

Cabal.SourceRepo

Description

Originally Distribution.Client.SourceRepo

Synopsis

SourceRepo

data SourceRepositoryPackage f Source #

source-repository-package definition

Instances

Instances details
Eq (f FilePath) => Eq (SourceRepositoryPackage f) Source # 
Instance details

Defined in Cabal.SourceRepo

Ord (f FilePath) => Ord (SourceRepositoryPackage f) Source # 
Instance details

Defined in Cabal.SourceRepo

Show (f FilePath) => Show (SourceRepositoryPackage f) Source # 
Instance details

Defined in Cabal.SourceRepo

Generic (SourceRepositoryPackage f) Source # 
Instance details

Defined in Cabal.SourceRepo

Associated Types

type Rep (SourceRepositoryPackage f) :: Type -> Type #

NFData (f FilePath) => NFData (SourceRepositoryPackage f) Source #

Since: 0.2.1

Instance details

Defined in Cabal.SourceRepo

Methods

rnf :: SourceRepositoryPackage f -> () #

type Rep (SourceRepositoryPackage f) Source # 
Instance details

Defined in Cabal.SourceRepo

type Rep (SourceRepositoryPackage f) = D1 ('MetaData "SourceRepositoryPackage" "Cabal.SourceRepo" "cabal-install-parsers-0.4.5-I11ufQRqGqfC6RF7pkXuiV" 'False) (C1 ('MetaCons "SourceRepositoryPackage" 'PrefixI 'True) ((S1 ('MetaSel ('Just "srpType") 'NoSourceUnpackedness 'SourceStrict 'DecidedStrict) (Rec0 RepoType) :*: S1 ('MetaSel ('Just "srpLocation") 'NoSourceUnpackedness 'SourceStrict 'DecidedStrict) (Rec0 String)) :*: (S1 ('MetaSel ('Just "srpTag") 'NoSourceUnpackedness 'SourceStrict 'DecidedStrict) (Rec0 (Maybe String)) :*: (S1 ('MetaSel ('Just "srpBranch") 'NoSourceUnpackedness 'SourceStrict 'DecidedStrict) (Rec0 (Maybe String)) :*: S1 ('MetaSel ('Just "srpSubdir") 'NoSourceUnpackedness 'SourceStrict 'DecidedStrict) (Rec0 (f FilePath))))))

Aliases

type SourceRepoList = SourceRepositoryPackage [] Source #

Read from cabal.project

type SourceRepoProxy = SourceRepositoryPackage Proxy Source #

SourceRepositoryPackage without subdir. Used in clone errors. Cloning doesn't care about subdirectory.

Functions

srpFanOut :: SourceRepositoryPackage [] -> NonEmpty (SourceRepositoryPackage Maybe) Source #

Split single source-repository-package declaration with multiple subdirs, into multiple ones with at most single subdir.

Grammar