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 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
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
.