Safe Haskell | None |
---|---|
Language | Haskell2010 |
Originally Distribution.Client.SourceRepo
Synopsis
- data SourceRepositoryPackage f = SourceRepositoryPackage {}
- type SourceRepoList = SourceRepositoryPackage []
- 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 [] -> NonEmpty (SourceRepositoryPackage Maybe)
- sourceRepositoryPackageGrammar :: (FieldGrammar g, Applicative (g SourceRepoList)) => g SourceRepoList SourceRepoList
SourceRepo
data SourceRepositoryPackage f Source #
source-repository-package
definition
Instances
Aliases
type SourceRepoList = SourceRepositoryPackage [] 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 [] -> NonEmpty (SourceRepositoryPackage Maybe) Source #
Split single source-repository-package
declaration with multiple subdirs,
into multiple ones with at most single subdir.