cabal-install-parsers-0.1: Utilities to work with cabal-install files

Safe HaskellNone
LanguageHaskell2010

Cabal.SourceRepo

Contents

Description

Originally Distribution.Client.SourceRepo

Synopsis

SourceRepo

data SourceRepositoryPackage f Source #

source-repository-package definition

Instances
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 #

type Rep (SourceRepositoryPackage f) Source # 
Instance details

Defined in Cabal.SourceRepo

type Rep (SourceRepositoryPackage f) = D1 (MetaData "SourceRepositoryPackage" "Cabal.SourceRepo" "cabal-install-parsers-0.1-KnbyjwSF8DJ8ZqXrXIKJWN" 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