Safe Haskell | Safe-Inferred |
---|---|
Language | Haskell2010 |
Synopsis
- data SourceRepo = SourceRepo {}
- data RepoKind
- data RepoType
- data KnownRepoType
- knownRepoTypes :: [KnownRepoType]
- emptySourceRepo :: RepoKind -> SourceRepo
- classifyRepoType :: String -> RepoType
- classifyRepoKind :: String -> RepoKind
Documentation
data SourceRepo Source #
Information about the source revision control system for a package.
When specifying a repo it is useful to know the meaning or intention of the
information as doing so enables automation. There are two obvious common
purposes: one is to find the repo for the latest development version, the
other is to find the repo for this specific release. The ReopKind
specifies which one we mean (or another custom one).
A package can specify one or the other kind or both. Most will specify just a head repo but some may want to specify a repo to reconstruct the sources for this package release.
The required information is the RepoType
which tells us if it's using
Darcs
, Git
for example. The repoLocation
and other details are
interpreted according to the repo type.
SourceRepo | |
|
Instances
Structured SourceRepo Source # | |
Defined in Distribution.Types.SourceRepo structure :: Proxy SourceRepo -> Structure Source # structureHash' :: Tagged SourceRepo MD5 | |
Data SourceRepo Source # | |
Defined in Distribution.Types.SourceRepo gfoldl :: (forall d b. Data d => c (d -> b) -> d -> c b) -> (forall g. g -> c g) -> SourceRepo -> c SourceRepo gunfold :: (forall b r. Data b => c (b -> r) -> c r) -> (forall r. r -> c r) -> Constr -> c SourceRepo toConstr :: SourceRepo -> Constr dataTypeOf :: SourceRepo -> DataType dataCast1 :: Typeable t => (forall d. Data d => c (t d)) -> Maybe (c SourceRepo) dataCast2 :: Typeable t => (forall d e. (Data d, Data e) => c (t d e)) -> Maybe (c SourceRepo) gmapT :: (forall b. Data b => b -> b) -> SourceRepo -> SourceRepo gmapQl :: (r -> r' -> r) -> r -> (forall d. Data d => d -> r') -> SourceRepo -> r gmapQr :: forall r r'. (r' -> r -> r) -> r -> (forall d. Data d => d -> r') -> SourceRepo -> r gmapQ :: (forall d. Data d => d -> u) -> SourceRepo -> [u] gmapQi :: Int -> (forall d. Data d => d -> u) -> SourceRepo -> u gmapM :: Monad m => (forall d. Data d => d -> m d) -> SourceRepo -> m SourceRepo gmapMp :: MonadPlus m => (forall d. Data d => d -> m d) -> SourceRepo -> m SourceRepo gmapMo :: MonadPlus m => (forall d. Data d => d -> m d) -> SourceRepo -> m SourceRepo | |
Generic SourceRepo Source # | |
Defined in Distribution.Types.SourceRepo type Rep SourceRepo :: Type -> Type from :: SourceRepo -> Rep SourceRepo x to :: Rep SourceRepo x -> SourceRepo | |
Read SourceRepo Source # | |
Defined in Distribution.Types.SourceRepo readsPrec :: Int -> ReadS SourceRepo # readList :: ReadS [SourceRepo] # readPrec :: ReadPrec SourceRepo readListPrec :: ReadPrec [SourceRepo] | |
Show SourceRepo Source # | |
Defined in Distribution.Types.SourceRepo showsPrec :: Int -> SourceRepo -> ShowS # show :: SourceRepo -> String # showList :: [SourceRepo] -> ShowS # | |
Binary SourceRepo Source # | |
Defined in Distribution.Types.SourceRepo | |
NFData SourceRepo Source # | |
Defined in Distribution.Types.SourceRepo rnf :: SourceRepo -> () # | |
Eq SourceRepo Source # | |
Defined in Distribution.Types.SourceRepo (==) :: SourceRepo -> SourceRepo -> Bool # (/=) :: SourceRepo -> SourceRepo -> Bool # | |
Ord SourceRepo Source # | |
Defined in Distribution.Types.SourceRepo compare :: SourceRepo -> SourceRepo -> Ordering # (<) :: SourceRepo -> SourceRepo -> Bool # (<=) :: SourceRepo -> SourceRepo -> Bool # (>) :: SourceRepo -> SourceRepo -> Bool # (>=) :: SourceRepo -> SourceRepo -> Bool # max :: SourceRepo -> SourceRepo -> SourceRepo # min :: SourceRepo -> SourceRepo -> SourceRepo # | |
type Rep SourceRepo Source # | |
Defined in Distribution.Types.SourceRepo type Rep SourceRepo = D1 ('MetaData "SourceRepo" "Distribution.Types.SourceRepo" "Cabal-syntax-3.13.0.0-inplace" 'False) (C1 ('MetaCons "SourceRepo" 'PrefixI 'True) ((S1 ('MetaSel ('Just "repoKind") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedLazy) (Rec0 RepoKind) :*: (S1 ('MetaSel ('Just "repoType") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedLazy) (Rec0 (Maybe RepoType)) :*: S1 ('MetaSel ('Just "repoLocation") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedLazy) (Rec0 (Maybe String)))) :*: ((S1 ('MetaSel ('Just "repoModule") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedLazy) (Rec0 (Maybe String)) :*: S1 ('MetaSel ('Just "repoBranch") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedLazy) (Rec0 (Maybe String))) :*: (S1 ('MetaSel ('Just "repoTag") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedLazy) (Rec0 (Maybe String)) :*: S1 ('MetaSel ('Just "repoSubdir") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedLazy) (Rec0 (Maybe FilePath)))))) |
What this repo info is for, what it represents.
RepoHead | The repository for the "head" or development version of the project. This repo is where we should track the latest development activity or the usual repo people should get to contribute patches. |
RepoThis | The repository containing the sources for this exact package version or release. For this kind of repo a tag should be given to give enough information to re-create the exact sources. |
RepoKindUnknown String |
Instances
Parsec RepoKind Source # | |
Defined in Distribution.Types.SourceRepo parsec :: CabalParsing m => m RepoKind Source # | |
Pretty RepoKind Source # | |
Defined in Distribution.Types.SourceRepo pretty :: RepoKind -> Doc Source # prettyVersioned :: CabalSpecVersion -> RepoKind -> Doc Source # | |
Structured RepoKind Source # | |
Defined in Distribution.Types.SourceRepo | |
Data RepoKind Source # | |
Defined in Distribution.Types.SourceRepo gfoldl :: (forall d b. Data d => c (d -> b) -> d -> c b) -> (forall g. g -> c g) -> RepoKind -> c RepoKind gunfold :: (forall b r. Data b => c (b -> r) -> c r) -> (forall r. r -> c r) -> Constr -> c RepoKind toConstr :: RepoKind -> Constr dataTypeOf :: RepoKind -> DataType dataCast1 :: Typeable t => (forall d. Data d => c (t d)) -> Maybe (c RepoKind) dataCast2 :: Typeable t => (forall d e. (Data d, Data e) => c (t d e)) -> Maybe (c RepoKind) gmapT :: (forall b. Data b => b -> b) -> RepoKind -> RepoKind gmapQl :: (r -> r' -> r) -> r -> (forall d. Data d => d -> r') -> RepoKind -> r gmapQr :: forall r r'. (r' -> r -> r) -> r -> (forall d. Data d => d -> r') -> RepoKind -> r gmapQ :: (forall d. Data d => d -> u) -> RepoKind -> [u] gmapQi :: Int -> (forall d. Data d => d -> u) -> RepoKind -> u gmapM :: Monad m => (forall d. Data d => d -> m d) -> RepoKind -> m RepoKind gmapMp :: MonadPlus m => (forall d. Data d => d -> m d) -> RepoKind -> m RepoKind gmapMo :: MonadPlus m => (forall d. Data d => d -> m d) -> RepoKind -> m RepoKind | |
Generic RepoKind Source # | |
Read RepoKind Source # | |
Show RepoKind Source # | |
Binary RepoKind Source # | |
NFData RepoKind Source # | |
Defined in Distribution.Types.SourceRepo | |
Eq RepoKind Source # | |
Ord RepoKind Source # | |
Defined in Distribution.Types.SourceRepo | |
type Rep RepoKind Source # | |
Defined in Distribution.Types.SourceRepo type Rep RepoKind = D1 ('MetaData "RepoKind" "Distribution.Types.SourceRepo" "Cabal-syntax-3.13.0.0-inplace" 'False) (C1 ('MetaCons "RepoHead" 'PrefixI 'False) (U1 :: Type -> Type) :+: (C1 ('MetaCons "RepoThis" 'PrefixI 'False) (U1 :: Type -> Type) :+: C1 ('MetaCons "RepoKindUnknown" 'PrefixI 'False) (S1 ('MetaSel ('Nothing :: Maybe Symbol) 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedLazy) (Rec0 String)))) |
Instances
Parsec RepoType Source # | |
Defined in Distribution.Types.SourceRepo parsec :: CabalParsing m => m RepoType Source # | |
Pretty RepoType Source # | |
Defined in Distribution.Types.SourceRepo pretty :: RepoType -> Doc Source # prettyVersioned :: CabalSpecVersion -> RepoType -> Doc Source # | |
Structured RepoType Source # | |
Defined in Distribution.Types.SourceRepo | |
Data RepoType Source # | |
Defined in Distribution.Types.SourceRepo gfoldl :: (forall d b. Data d => c (d -> b) -> d -> c b) -> (forall g. g -> c g) -> RepoType -> c RepoType gunfold :: (forall b r. Data b => c (b -> r) -> c r) -> (forall r. r -> c r) -> Constr -> c RepoType toConstr :: RepoType -> Constr dataTypeOf :: RepoType -> DataType dataCast1 :: Typeable t => (forall d. Data d => c (t d)) -> Maybe (c RepoType) dataCast2 :: Typeable t => (forall d e. (Data d, Data e) => c (t d e)) -> Maybe (c RepoType) gmapT :: (forall b. Data b => b -> b) -> RepoType -> RepoType gmapQl :: (r -> r' -> r) -> r -> (forall d. Data d => d -> r') -> RepoType -> r gmapQr :: forall r r'. (r' -> r -> r) -> r -> (forall d. Data d => d -> r') -> RepoType -> r gmapQ :: (forall d. Data d => d -> u) -> RepoType -> [u] gmapQi :: Int -> (forall d. Data d => d -> u) -> RepoType -> u gmapM :: Monad m => (forall d. Data d => d -> m d) -> RepoType -> m RepoType gmapMp :: MonadPlus m => (forall d. Data d => d -> m d) -> RepoType -> m RepoType gmapMo :: MonadPlus m => (forall d. Data d => d -> m d) -> RepoType -> m RepoType | |
Generic RepoType Source # | |
Read RepoType Source # | |
Show RepoType Source # | |
Binary RepoType Source # | |
NFData RepoType Source # | |
Defined in Distribution.Types.SourceRepo | |
Eq RepoType Source # | |
Ord RepoType Source # | |
Defined in Distribution.Types.SourceRepo | |
type Rep RepoType Source # | |
Defined in Distribution.Types.SourceRepo type Rep RepoType = D1 ('MetaData "RepoType" "Distribution.Types.SourceRepo" "Cabal-syntax-3.13.0.0-inplace" 'False) (C1 ('MetaCons "KnownRepoType" 'PrefixI 'False) (S1 ('MetaSel ('Nothing :: Maybe Symbol) 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedLazy) (Rec0 KnownRepoType)) :+: C1 ('MetaCons "OtherRepoType" 'PrefixI 'False) (S1 ('MetaSel ('Nothing :: Maybe Symbol) 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedLazy) (Rec0 String))) |
data KnownRepoType Source #
An enumeration of common source control systems. The fields used in the
SourceRepo
depend on the type of repo. The tools and methods used to
obtain and track the repo depend on the repo type.
Instances
emptySourceRepo :: RepoKind -> SourceRepo Source #
classifyRepoType :: String -> RepoType Source #
classifyRepoKind :: String -> RepoKind Source #