Copyright | (c) 2016 Herbert Valerio Riedel |
---|---|
License | BSD3 |
Safe Haskell | None |
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 Source #
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 Source #
Index state of multiple repositories
Instances
Parsec TotalIndexState Source # |
| ||||
Defined in Distribution.Client.IndexUtils.IndexState Methods parsec :: CabalParsing m => m TotalIndexState # | |||||
Pretty TotalIndexState Source # | |||||
Defined in Distribution.Client.IndexUtils.IndexState Methods pretty :: TotalIndexState -> Doc # prettyVersioned :: CabalSpecVersion -> TotalIndexState -> Doc # | |||||
Structured TotalIndexState Source # | |||||
Defined in Distribution.Client.IndexUtils.IndexState Methods structure :: Proxy TotalIndexState -> Structure # structureHash' :: Tagged TotalIndexState MD5 | |||||
Generic TotalIndexState Source # | |||||
Defined in Distribution.Client.IndexUtils.IndexState Associated Types
Methods from :: TotalIndexState -> Rep TotalIndexState x # to :: Rep TotalIndexState x -> TotalIndexState # | |||||
Show TotalIndexState Source # | |||||
Defined in Distribution.Client.IndexUtils.IndexState Methods showsPrec :: Int -> TotalIndexState -> ShowS # show :: TotalIndexState -> String # showList :: [TotalIndexState] -> ShowS # | |||||
Binary TotalIndexState Source # | |||||
Defined in Distribution.Client.IndexUtils.IndexState Methods put :: TotalIndexState -> Put # get :: Get TotalIndexState # putList :: [TotalIndexState] -> Put # | |||||
NFData TotalIndexState Source # | |||||
Defined in Distribution.Client.IndexUtils.IndexState Methods rnf :: TotalIndexState -> () # | |||||
Eq TotalIndexState Source # | |||||
Defined in Distribution.Client.IndexUtils.IndexState Methods (==) :: TotalIndexState -> TotalIndexState -> Bool # (/=) :: TotalIndexState -> TotalIndexState -> Bool # | |||||
type Rep TotalIndexState Source # | |||||
Defined in Distribution.Client.IndexUtils.IndexState type Rep TotalIndexState = D1 ('MetaData "TotalIndexState" "Distribution.Client.IndexUtils.IndexState" "cabal-install-3.10.3.0-A6FOy97Nw82F51QsGdGZb8" '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 Source #
TotalIndexState
where all repositories are at HEAD
index state.
makeTotalIndexState :: RepoIndexState -> Map RepoName RepoIndexState -> TotalIndexState Source #
Create TotalIndexState
.
lookupIndexState :: RepoName -> TotalIndexState -> RepoIndexState Source #
Lookup a RepoIndexState
for an individual repository from TotalIndexState
.
insertIndexState :: RepoName -> RepoIndexState -> TotalIndexState -> TotalIndexState Source #
Insert a RepoIndexState
to TotalIndexState
.