cabal-install-3.8.1.0: 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 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

Instances details
Eq RepoIndexState Source # 
Instance details

Defined in Distribution.Client.IndexUtils.IndexState

Show RepoIndexState Source # 
Instance details

Defined in Distribution.Client.IndexUtils.IndexState

Generic RepoIndexState Source # 
Instance details

Defined in Distribution.Client.IndexUtils.IndexState

Associated Types

type Rep RepoIndexState :: Type -> Type #

Binary RepoIndexState Source # 
Instance details

Defined in Distribution.Client.IndexUtils.IndexState

NFData RepoIndexState Source # 
Instance details

Defined in Distribution.Client.IndexUtils.IndexState

Methods

rnf :: RepoIndexState -> () #

Structured RepoIndexState Source # 
Instance details

Defined in Distribution.Client.IndexUtils.IndexState

Parsec RepoIndexState Source # 
Instance details

Defined in Distribution.Client.IndexUtils.IndexState

Pretty RepoIndexState Source # 
Instance details

Defined in Distribution.Client.IndexUtils.IndexState

type Rep RepoIndexState Source # 
Instance details

Defined in Distribution.Client.IndexUtils.IndexState

type Rep RepoIndexState = D1 ('MetaData "RepoIndexState" "Distribution.Client.IndexUtils.IndexState" "cabal-install-3.8.1.0-7iNu5HGLMqL9QLfLAUJqbd" '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 Source #

Index state of multiple repositories

Instances

Instances details
Eq TotalIndexState Source # 
Instance details

Defined in Distribution.Client.IndexUtils.IndexState

Show TotalIndexState Source # 
Instance details

Defined in Distribution.Client.IndexUtils.IndexState

Generic TotalIndexState Source # 
Instance details

Defined in Distribution.Client.IndexUtils.IndexState

Associated Types

type Rep TotalIndexState :: Type -> Type #

Binary TotalIndexState Source # 
Instance details

Defined in Distribution.Client.IndexUtils.IndexState

NFData TotalIndexState Source # 
Instance details

Defined in Distribution.Client.IndexUtils.IndexState

Methods

rnf :: TotalIndexState -> () #

Structured TotalIndexState Source # 
Instance details

Defined in Distribution.Client.IndexUtils.IndexState

Parsec TotalIndexState Source #
>>> 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 Source # 
Instance details

Defined in Distribution.Client.IndexUtils.IndexState

type Rep TotalIndexState Source # 
Instance details

Defined in Distribution.Client.IndexUtils.IndexState

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