cabal-install-3.10.1.0: The command-line interface for Cabal and Hackage.
Copyright(c) 2016 Herbert Valerio Riedel
LicenseBSD3
Safe HaskellSafe-Inferred
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
Parsec RepoIndexState Source # 
Instance details

Defined in Distribution.Client.IndexUtils.IndexState

Pretty RepoIndexState Source # 
Instance details

Defined in Distribution.Client.IndexUtils.IndexState

Structured 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 #

Show RepoIndexState Source # 
Instance details

Defined in Distribution.Client.IndexUtils.IndexState

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 -> () #

Eq 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.10.1.0-FbhGUvZ0l0XIx7QbOQfSVh" '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
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

Structured 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 #

Show TotalIndexState Source # 
Instance details

Defined in Distribution.Client.IndexUtils.IndexState

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 -> () #

Eq 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.10.1.0-FbhGUvZ0l0XIx7QbOQfSVh" '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.