Copyright | (c) 2016 Herbert Valerio Riedel |
---|---|
License | BSD3 |
Safe Haskell | Safe-Inferred |
Language | Haskell2010 |
Distribution.Client.IndexUtils.IndexState
Description
Package repositories index state.
Synopsis
- data RepoIndexState
- data TotalIndexState
- headTotalIndexState :: TotalIndexState
- makeTotalIndexState :: RepoIndexState -> Map RepoName RepoIndexState -> TotalIndexState
- lookupIndexState :: RepoName -> TotalIndexState -> RepoIndexState
- insertIndexState :: RepoName -> RepoIndexState -> TotalIndexState -> TotalIndexState
Documentation
data RepoIndexState #
Specification of the state of a specific repo package index
Constructors
IndexStateHead | Use all available entries |
IndexStateTime !Timestamp | Use all entries that existed at the specified time |
Instances
data TotalIndexState #
Index state of multiple repositories
Instances
Parsec TotalIndexState # |
|
Defined in Distribution.Client.IndexUtils.IndexState Methods parsec :: CabalParsing m => m TotalIndexState # | |
Pretty TotalIndexState # | |
Defined in Distribution.Client.IndexUtils.IndexState Methods pretty :: TotalIndexState -> Doc # prettyVersioned :: CabalSpecVersion -> TotalIndexState -> Doc # | |
Structured TotalIndexState # | |
Defined in Distribution.Client.IndexUtils.IndexState | |
Generic TotalIndexState # | |
Defined in Distribution.Client.IndexUtils.IndexState Associated Types type Rep TotalIndexState :: Type -> Type Methods from :: TotalIndexState -> Rep TotalIndexState x to :: Rep TotalIndexState x -> TotalIndexState | |
Show TotalIndexState # | |
Defined in Distribution.Client.IndexUtils.IndexState Methods showsPrec :: Int -> TotalIndexState -> ShowS # show :: TotalIndexState -> String # showList :: [TotalIndexState] -> ShowS # | |
Binary TotalIndexState # | |
Defined in Distribution.Client.IndexUtils.IndexState Methods put :: TotalIndexState -> Put # get :: Get TotalIndexState # putList :: [TotalIndexState] -> Put # | |
NFData TotalIndexState # | |
Defined in Distribution.Client.IndexUtils.IndexState Methods rnf :: TotalIndexState -> () # | |
Eq TotalIndexState # | |
Defined in Distribution.Client.IndexUtils.IndexState Methods (==) :: TotalIndexState -> TotalIndexState -> Bool # (/=) :: TotalIndexState -> TotalIndexState -> Bool # | |
type Rep TotalIndexState # | |
Defined in Distribution.Client.IndexUtils.IndexState type Rep TotalIndexState = D1 ('MetaData "TotalIndexState" "Distribution.Client.IndexUtils.IndexState" "cabal-install-3.10.1.0-Ekg8GNNGONdHi9WRJ3K3Tf" 'False) (C1 ('MetaCons "TIS" 'PrefixI 'False) (S1 ('MetaSel ('Nothing :: Maybe Symbol) 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedLazy) (Rec0 RepoIndexState) :*: S1 ('MetaSel ('Nothing :: Maybe Symbol) 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedLazy) (Rec0 (Map RepoName RepoIndexState)))) |
headTotalIndexState :: TotalIndexState #
TotalIndexState
where all repositories are at HEAD
index state.
makeTotalIndexState :: RepoIndexState -> Map RepoName RepoIndexState -> TotalIndexState #
Create TotalIndexState
.
lookupIndexState :: RepoName -> TotalIndexState -> RepoIndexState #
Lookup a RepoIndexState
for an individual repository from TotalIndexState
.
insertIndexState :: RepoName -> RepoIndexState -> TotalIndexState -> TotalIndexState #
Insert a RepoIndexState
to TotalIndexState
.