cabal-install-parsers-0.3.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 #

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.3.0.1-2fD8GIxvoR0GeTwPo5RQnW" 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