Safe Haskell | Safe-Inferred |
---|---|
Language | Haskell2010 |
Originally Distribution.Client.SourceRepo
Synopsis
- data SourceRepositoryPackage f = SourceRepositoryPackage {}
- type SourceRepoList = SourceRepositoryPackage List
- type SourceRepoMaybe = SourceRepositoryPackage Maybe
- type SourceRepoProxy = SourceRepositoryPackage Proxy
- srpHoist :: (forall x. f x -> g x) -> SourceRepositoryPackage f -> SourceRepositoryPackage g
- srpToProxy :: SourceRepositoryPackage f -> SourceRepositoryPackage Proxy
- srpFanOut :: SourceRepositoryPackage List -> NonEmpty (SourceRepositoryPackage Maybe)
- sourceRepositoryPackageGrammar :: (FieldGrammar c g, Applicative (g SourceRepoList), c (List NoCommaFSep FilePathNT String), c (Identity RepoType)) => g SourceRepoList SourceRepoList
SourceRepo
data SourceRepositoryPackage f Source #
source-repository-package
definition
Instances
Aliases
type SourceRepoList = SourceRepositoryPackage List Source #
Read from cabal.project
type SourceRepoMaybe = SourceRepositoryPackage Maybe Source #
Distilled from SourceRepo
type SourceRepoProxy = SourceRepositoryPackage Proxy Source #
SourceRepositoryPackage
without subdir. Used in clone errors. Cloning doesn't care about subdirectory.
Functions
srpHoist :: (forall x. f x -> g x) -> SourceRepositoryPackage f -> SourceRepositoryPackage g Source #
srpFanOut :: SourceRepositoryPackage List -> NonEmpty (SourceRepositoryPackage Maybe) Source #
Split single source-repository-package
declaration with multiple subdirs,
into multiple ones with at most single subdir.
Grammar
sourceRepositoryPackageGrammar :: (FieldGrammar c g, Applicative (g SourceRepoList), c (List NoCommaFSep FilePathNT String), c (Identity RepoType)) => g SourceRepoList SourceRepoList Source #