cabal-install-3.10.2.1: The command-line interface for Cabal and Hackage.
Copyright(c) 2016 Herbert Valerio Riedel
LicenseBSD3
Safe HaskellNone
LanguageHaskell2010

Distribution.Client.IndexUtils.IndexState

Description

Package repositories index state.

Synopsis

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

Instances details
Parsec RepoIndexState # 
Instance details

Defined in Distribution.Client.IndexUtils.IndexState

Pretty RepoIndexState # 
Instance details

Defined in Distribution.Client.IndexUtils.IndexState

Structured RepoIndexState # 
Instance details

Defined in Distribution.Client.IndexUtils.IndexState

Generic RepoIndexState # 
Instance details

Defined in Distribution.Client.IndexUtils.IndexState

Associated Types

type Rep RepoIndexState 
Instance details

Defined in Distribution.Client.IndexUtils.IndexState

type Rep RepoIndexState = D1 ('MetaData "RepoIndexState" "Distribution.Client.IndexUtils.IndexState" "cabal-install-3.10.2.1-EH6AEtqwlbKE3rh89dIk81" 'False) (C1 ('MetaCons "IndexStateHead" 'PrefixI 'False) (U1 :: Type -> Type) :+: C1 ('MetaCons "IndexStateTime" 'PrefixI 'False) (S1 ('MetaSel ('Nothing :: Maybe Symbol) 'NoSourceUnpackedness 'SourceStrict 'DecidedStrict) (Rec0 Timestamp)))
Show RepoIndexState # 
Instance details

Defined in Distribution.Client.IndexUtils.IndexState

Binary RepoIndexState # 
Instance details

Defined in Distribution.Client.IndexUtils.IndexState

NFData RepoIndexState # 
Instance details

Defined in Distribution.Client.IndexUtils.IndexState

Methods

rnf :: RepoIndexState -> () #

Eq RepoIndexState # 
Instance details

Defined in Distribution.Client.IndexUtils.IndexState

type Rep RepoIndexState # 
Instance details

Defined in Distribution.Client.IndexUtils.IndexState

type Rep RepoIndexState = D1 ('MetaData "RepoIndexState" "Distribution.Client.IndexUtils.IndexState" "cabal-install-3.10.2.1-EH6AEtqwlbKE3rh89dIk81" 'False) (C1 ('MetaCons "IndexStateHead" 'PrefixI 'False) (U1 :: Type -> Type) :+: C1 ('MetaCons "IndexStateTime" 'PrefixI 'False) (S1 ('MetaSel ('Nothing :: Maybe Symbol) 'NoSourceUnpackedness 'SourceStrict 'DecidedStrict) (Rec0 Timestamp)))

data TotalIndexState #

Index state of multiple repositories

Instances

Instances details
Parsec TotalIndexState #
>>> simpleParsec "HEAD" :: Maybe TotalIndexState
Just (TIS IndexStateHead (fromList []))
>>> simpleParsec "" :: Maybe TotalIndexState
Nothing
>>> simpleParsec "hackage.haskell.org HEAD" :: Maybe TotalIndexState
Just (TIS IndexStateHead (fromList []))
>>> simpleParsec "2020-02-04T12:34:56Z, hackage.haskell.org HEAD" :: Maybe TotalIndexState
Just (TIS (IndexStateTime (TS 1580819696)) (fromList [(RepoName "hackage.haskell.org",IndexStateHead)]))
>>> simpleParsec "hackage.haskell.org 2020-02-04T12:34:56Z" :: Maybe TotalIndexState
Just (TIS IndexStateHead (fromList [(RepoName "hackage.haskell.org",IndexStateTime (TS 1580819696))]))
Instance details

Defined in Distribution.Client.IndexUtils.IndexState

Pretty TotalIndexState # 
Instance details

Defined in Distribution.Client.IndexUtils.IndexState

Structured TotalIndexState # 
Instance details

Defined in Distribution.Client.IndexUtils.IndexState

Generic TotalIndexState # 
Instance details

Defined in Distribution.Client.IndexUtils.IndexState

Associated Types

type Rep TotalIndexState 
Instance details

Defined in Distribution.Client.IndexUtils.IndexState

type Rep TotalIndexState = D1 ('MetaData "TotalIndexState" "Distribution.Client.IndexUtils.IndexState" "cabal-install-3.10.2.1-EH6AEtqwlbKE3rh89dIk81" '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))))
Show TotalIndexState # 
Instance details

Defined in Distribution.Client.IndexUtils.IndexState

Binary TotalIndexState # 
Instance details

Defined in Distribution.Client.IndexUtils.IndexState

NFData TotalIndexState # 
Instance details

Defined in Distribution.Client.IndexUtils.IndexState

Methods

rnf :: TotalIndexState -> () #

Eq TotalIndexState # 
Instance details

Defined in Distribution.Client.IndexUtils.IndexState

type Rep TotalIndexState # 
Instance details

Defined in Distribution.Client.IndexUtils.IndexState

type Rep TotalIndexState = D1 ('MetaData "TotalIndexState" "Distribution.Client.IndexUtils.IndexState" "cabal-install-3.10.2.1-EH6AEtqwlbKE3rh89dIk81" '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.

lookupIndexState :: RepoName -> TotalIndexState -> RepoIndexState #

Lookup a RepoIndexState for an individual repository from TotalIndexState.