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

Distribution.Client.IndexUtils.Timestamp

Description

Timestamp type used in package indexes

Synopsis

Documentation

data Timestamp Source #

UNIX timestamp (expressed in seconds since unix epoch, i.e. 1970).

Constructors

NoTimestamp 

Instances

Instances details
Parsec Timestamp Source # 
Instance details

Defined in Distribution.Client.IndexUtils.Timestamp

Methods

parsec :: CabalParsing m => m Timestamp #

Pretty Timestamp Source # 
Instance details

Defined in Distribution.Client.IndexUtils.Timestamp

Structured Timestamp Source # 
Instance details

Defined in Distribution.Client.IndexUtils.Timestamp

Generic Timestamp Source # 
Instance details

Defined in Distribution.Client.IndexUtils.Timestamp

Associated Types

type Rep Timestamp :: Type -> Type #

Show Timestamp Source # 
Instance details

Defined in Distribution.Client.IndexUtils.Timestamp

Binary Timestamp Source # 
Instance details

Defined in Distribution.Client.IndexUtils.Timestamp

NFData Timestamp Source # 
Instance details

Defined in Distribution.Client.IndexUtils.Timestamp

Methods

rnf :: Timestamp -> () #

Eq Timestamp Source # 
Instance details

Defined in Distribution.Client.IndexUtils.Timestamp

Ord Timestamp Source # 
Instance details

Defined in Distribution.Client.IndexUtils.Timestamp

type Rep Timestamp Source # 
Instance details

Defined in Distribution.Client.IndexUtils.Timestamp

type Rep Timestamp = D1 ('MetaData "Timestamp" "Distribution.Client.IndexUtils.Timestamp" "cabal-install-3.12.1.0-9NqWFHLEtw1EbVuShkL8UM" 'False) (C1 ('MetaCons "NoTimestamp" 'PrefixI 'False) (U1 :: Type -> Type) :+: C1 ('MetaCons "TS" 'PrefixI 'False) (S1 ('MetaSel ('Nothing :: Maybe Symbol) 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedLazy) (Rec0 Int64)))

maximumTimestamp :: [Timestamp] -> Timestamp Source #

Compute the maximum Timestamp value

Returns NoTimestamp for the empty list. Also note that NoTimestamp compares as smaller to all non-NoTimestamp values.