Safe Haskell | Safe-Inferred |
---|---|
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 #
Constructors
RemoteRepo | |
Fields
|
Instances
Parsec RemoteRepo # | Note: serialised format represents |
Defined in Distribution.Client.Types.Repo Methods parsec :: CabalParsing m => m RemoteRepo # | |
Pretty RemoteRepo # | |
Defined in Distribution.Client.Types.Repo | |
Structured RemoteRepo # | |
Defined in Distribution.Client.Types.Repo | |
Generic RemoteRepo # | |
Defined in Distribution.Client.Types.Repo Associated Types type Rep RemoteRepo :: Type -> Type | |
Show RemoteRepo # | |
Defined in Distribution.Client.Types.Repo Methods showsPrec :: Int -> RemoteRepo -> ShowS # show :: RemoteRepo -> String # showList :: [RemoteRepo] -> ShowS # | |
Binary RemoteRepo # | |
Defined in Distribution.Client.Types.Repo | |
Eq RemoteRepo # | |
Defined in Distribution.Client.Types.Repo | |
Ord RemoteRepo # | |
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 # | |
Defined in Distribution.Client.Types.Repo type Rep RemoteRepo = D1 ('MetaData "RemoteRepo" "Distribution.Client.Types.Repo" "cabal-install-3.10.1.0-Ekg8GNNGONdHi9WRJ3K3Tf" '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 #
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 # | Note: doesn't parse |
Defined in Distribution.Client.Types.Repo Methods parsec :: CabalParsing m => m LocalRepo # | |
Pretty LocalRepo # | |
Defined in Distribution.Client.Types.Repo | |
Structured LocalRepo # | |
Defined in Distribution.Client.Types.Repo | |
Generic LocalRepo # | |
Show LocalRepo # | |
Binary LocalRepo # | |
Eq LocalRepo # | |
Ord LocalRepo # | |
type Rep LocalRepo # | |
Defined in Distribution.Client.Types.Repo type Rep LocalRepo = D1 ('MetaData "LocalRepo" "Distribution.Client.Types.Repo" "cabal-install-3.10.1.0-Ekg8GNNGONdHi9WRJ3K3Tf" '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 #
Construct a partial LocalRepo
value to fold the field parser list over.
localRepoCacheKey :: LocalRepo -> String #
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 # | |
Defined in Distribution.Client.Types.Repo | |
Generic Repo # | |
Show Repo # | |
Binary Repo # | |
Eq Repo # | |
Ord Repo # | |
type Rep Repo # | |
Defined in Distribution.Client.Types.Repo type Rep Repo = D1 ('MetaData "Repo" "Distribution.Client.Types.Repo" "cabal-install-3.10.1.0-Ekg8GNNGONdHi9WRJ3K3Tf" '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 #
Check if this is a remote repo
maybeRepoRemote :: Repo -> Maybe RemoteRepo #
Extract RemoteRepo
from Repo
if remote.