Safe Haskell | None |
---|---|
Language | Haskell2010 |
Distribution.Client.Types.Repo
Synopsis
- data RemoteRepo = RemoteRepo {}
- emptyRemoteRepo :: RepoName -> RemoteRepo
- data LocalRepo = LocalRepo {}
- emptyLocalRepo :: RepoName -> LocalRepo
- localRepoCacheKey :: LocalRepo -> String
- data Repo
- = RepoLocalNoIndex { }
- | RepoRemote { }
- | RepoSecure { }
- repoName :: Repo -> RepoName
- isRepoRemote :: Repo -> Bool
- maybeRepoRemote :: Repo -> Maybe RemoteRepo
Remote repository
data RemoteRepo Source #
Constructors
RemoteRepo | |
Fields
|
Instances
Parsec RemoteRepo Source # | Note: serialised format represents | ||||
Defined in Distribution.Client.Types.Repo Methods parsec :: CabalParsing m => m RemoteRepo # | |||||
Pretty RemoteRepo Source # | |||||
Defined in Distribution.Client.Types.Repo | |||||
Structured RemoteRepo Source # | |||||
Defined in Distribution.Client.Types.Repo | |||||
Generic RemoteRepo Source # | |||||
Defined in Distribution.Client.Types.Repo Associated Types
| |||||
Show RemoteRepo Source # | |||||
Defined in Distribution.Client.Types.Repo Methods showsPrec :: Int -> RemoteRepo -> ShowS # show :: RemoteRepo -> String # showList :: [RemoteRepo] -> ShowS # | |||||
Binary RemoteRepo Source # | |||||
Defined in Distribution.Client.Types.Repo | |||||
Eq RemoteRepo Source # | |||||
Defined in Distribution.Client.Types.Repo | |||||
Ord RemoteRepo Source # | |||||
Defined in Distribution.Client.Types.Repo Methods compare :: RemoteRepo -> RemoteRepo -> Ordering # (<) :: RemoteRepo -> RemoteRepo -> Bool # (<=) :: RemoteRepo -> RemoteRepo -> Bool # (>) :: RemoteRepo -> RemoteRepo -> Bool # (>=) :: RemoteRepo -> RemoteRepo -> Bool # max :: RemoteRepo -> RemoteRepo -> RemoteRepo # min :: RemoteRepo -> RemoteRepo -> RemoteRepo # | |||||
type Rep RemoteRepo Source # | |||||
Defined in Distribution.Client.Types.Repo type Rep RemoteRepo = D1 ('MetaData "RemoteRepo" "Distribution.Client.Types.Repo" "cabal-install-3.10.2.1-DLejlSwH0n8EgQZ8dE6aYZ" 'False) (C1 ('MetaCons "RemoteRepo" 'PrefixI 'True) ((S1 ('MetaSel ('Just "remoteRepoName") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedLazy) (Rec0 RepoName) :*: (S1 ('MetaSel ('Just "remoteRepoURI") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedLazy) (Rec0 URI) :*: S1 ('MetaSel ('Just "remoteRepoSecure") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedLazy) (Rec0 (Maybe Bool)))) :*: (S1 ('MetaSel ('Just "remoteRepoRootKeys") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedLazy) (Rec0 [String]) :*: (S1 ('MetaSel ('Just "remoteRepoKeyThreshold") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedLazy) (Rec0 Int) :*: S1 ('MetaSel ('Just "remoteRepoShouldTryHttps") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedLazy) (Rec0 Bool))))) |
emptyRemoteRepo :: RepoName -> RemoteRepo Source #
Construct a partial RemoteRepo
value to fold the field parser list over.
Local repository (no-index)
no-index style local repositories.
Constructors
LocalRepo | |
Fields |
Instances
Parsec LocalRepo Source # | Note: doesn't parse | ||||
Defined in Distribution.Client.Types.Repo Methods parsec :: CabalParsing m => m LocalRepo # | |||||
Pretty LocalRepo Source # | |||||
Defined in Distribution.Client.Types.Repo | |||||
Structured LocalRepo Source # | |||||
Defined in Distribution.Client.Types.Repo | |||||
Generic LocalRepo Source # | |||||
Defined in Distribution.Client.Types.Repo Associated Types
| |||||
Show LocalRepo Source # | |||||
Binary LocalRepo Source # | |||||
Eq LocalRepo Source # | |||||
Ord LocalRepo Source # | |||||
type Rep LocalRepo Source # | |||||
Defined in Distribution.Client.Types.Repo type Rep LocalRepo = D1 ('MetaData "LocalRepo" "Distribution.Client.Types.Repo" "cabal-install-3.10.2.1-DLejlSwH0n8EgQZ8dE6aYZ" 'False) (C1 ('MetaCons "LocalRepo" 'PrefixI 'True) (S1 ('MetaSel ('Just "localRepoName") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedLazy) (Rec0 RepoName) :*: (S1 ('MetaSel ('Just "localRepoPath") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedLazy) (Rec0 FilePath) :*: S1 ('MetaSel ('Just "localRepoSharedCache") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedLazy) (Rec0 Bool)))) |
emptyLocalRepo :: RepoName -> LocalRepo Source #
Construct a partial LocalRepo
value to fold the field parser list over.
localRepoCacheKey :: LocalRepo -> String Source #
Calculate a cache key for local-repo.
For remote repositories we just use name, but local repositories may
all be named "local", so we add a bit of localRepoPath
into the
mix.
Repository
Different kinds of repositories
NOTE: It is important that this type remains serializable.
Constructors
RepoLocalNoIndex | Local repository, without index. |
Fields | |
RepoRemote | Standard (unsecured) remote repositories |
Fields | |
RepoSecure | Secure repositories Although this contains the same fields as Not all access to a secure repo goes through the hackage-security
library currently; code paths that do not still make use of the
|
Fields |
Instances
Structured Repo Source # | |||||
Defined in Distribution.Client.Types.Repo | |||||
Generic Repo Source # | |||||
Defined in Distribution.Client.Types.Repo Associated Types
| |||||
Show Repo Source # | |||||
Binary Repo Source # | |||||
Eq Repo Source # | |||||
Ord Repo Source # | |||||
type Rep Repo Source # | |||||
Defined in Distribution.Client.Types.Repo type Rep Repo = D1 ('MetaData "Repo" "Distribution.Client.Types.Repo" "cabal-install-3.10.2.1-DLejlSwH0n8EgQZ8dE6aYZ" 'False) (C1 ('MetaCons "RepoLocalNoIndex" 'PrefixI 'True) (S1 ('MetaSel ('Just "repoLocal") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedLazy) (Rec0 LocalRepo) :*: S1 ('MetaSel ('Just "repoLocalDir") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedLazy) (Rec0 FilePath)) :+: (C1 ('MetaCons "RepoRemote" 'PrefixI 'True) (S1 ('MetaSel ('Just "repoRemote") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedLazy) (Rec0 RemoteRepo) :*: S1 ('MetaSel ('Just "repoLocalDir") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedLazy) (Rec0 FilePath)) :+: C1 ('MetaCons "RepoSecure" 'PrefixI 'True) (S1 ('MetaSel ('Just "repoRemote") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedLazy) (Rec0 RemoteRepo) :*: S1 ('MetaSel ('Just "repoLocalDir") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedLazy) (Rec0 FilePath)))) |
isRepoRemote :: Repo -> Bool Source #
Check if this is a remote repo
maybeRepoRemote :: Repo -> Maybe RemoteRepo Source #
Extract RemoteRepo
from Repo
if remote.