cardano-slotting-0.1.0.2: Key slotting types for cardano libraries
Safe Haskell None
Language Haskell2010

Cardano.Slotting.Slot

Synopsis

Documentation

newtype SlotNo Source #

The 0-based index for the Ourboros time slot.

Constructors

SlotNo

Instances

Instances details
Bounded SlotNo Source #
Instance details

Defined in Cardano.Slotting.Slot

Enum SlotNo Source #
Instance details

Defined in Cardano.Slotting.Slot

Eq SlotNo Source #
Instance details

Defined in Cardano.Slotting.Slot

Num SlotNo Source #
Instance details

Defined in Cardano.Slotting.Slot

Ord SlotNo Source #
Instance details

Defined in Cardano.Slotting.Slot

Show SlotNo Source #
Instance details

Defined in Cardano.Slotting.Slot

Generic SlotNo Source #
Instance details

Defined in Cardano.Slotting.Slot

ToJSON SlotNo Source #
Instance details

Defined in Cardano.Slotting.Slot

FromJSON SlotNo Source #
Instance details

Defined in Cardano.Slotting.Slot

ToCBOR SlotNo Source #
Instance details

Defined in Cardano.Slotting.Slot

FromCBOR SlotNo Source #
Instance details

Defined in Cardano.Slotting.Slot

NFData SlotNo Source #
Instance details

Defined in Cardano.Slotting.Slot

NoThunks SlotNo Source #
Instance details

Defined in Cardano.Slotting.Slot

Serialise SlotNo Source #
Instance details

Defined in Cardano.Slotting.Slot

type Rep SlotNo Source #
Instance details

Defined in Cardano.Slotting.Slot

type Rep SlotNo = D1 (' MetaData "SlotNo" "Cardano.Slotting.Slot" "cardano-slotting-0.1.0.2-j5NuF73p5IFfcfvmth6tS" ' True ) ( C1 (' MetaCons "SlotNo" ' PrefixI ' True ) ( S1 (' MetaSel (' Just "unSlotNo") ' NoSourceUnpackedness ' NoSourceStrictness ' DecidedLazy ) ( Rec0 Word64 )))

data WithOrigin t Source #

Constructors

Origin
At !t

Instances

Instances details
Functor WithOrigin Source #
Instance details

Defined in Cardano.Slotting.Slot

Foldable WithOrigin Source #
Instance details

Defined in Cardano.Slotting.Slot

Traversable WithOrigin Source #
Instance details

Defined in Cardano.Slotting.Slot

Bounded t => Bounded ( WithOrigin t) Source #
Instance details

Defined in Cardano.Slotting.Slot

Eq t => Eq ( WithOrigin t) Source #
Instance details

Defined in Cardano.Slotting.Slot

Ord t => Ord ( WithOrigin t) Source #
Instance details

Defined in Cardano.Slotting.Slot

Show t => Show ( WithOrigin t) Source #
Instance details

Defined in Cardano.Slotting.Slot

Generic ( WithOrigin t) Source #
Instance details

Defined in Cardano.Slotting.Slot

Associated Types

type Rep ( WithOrigin t) :: Type -> Type Source #

( Serialise t, Typeable t) => ToCBOR ( WithOrigin t) Source #
Instance details

Defined in Cardano.Slotting.Slot

( Serialise t, Typeable t) => FromCBOR ( WithOrigin t) Source #
Instance details

Defined in Cardano.Slotting.Slot

NFData a => NFData ( WithOrigin a) Source #
Instance details

Defined in Cardano.Slotting.Slot

NoThunks t => NoThunks ( WithOrigin t) Source #
Instance details

Defined in Cardano.Slotting.Slot

Serialise t => Serialise ( WithOrigin t) Source #
Instance details

Defined in Cardano.Slotting.Slot

type Rep ( WithOrigin t) Source #
Instance details

Defined in Cardano.Slotting.Slot

type Rep ( WithOrigin t) = D1 (' MetaData "WithOrigin" "Cardano.Slotting.Slot" "cardano-slotting-0.1.0.2-j5NuF73p5IFfcfvmth6tS" ' False ) ( C1 (' MetaCons "Origin" ' PrefixI ' False ) ( U1 :: Type -> Type ) :+: C1 (' MetaCons "At" ' PrefixI ' False ) ( S1 (' MetaSel (' Nothing :: Maybe Symbol ) ' NoSourceUnpackedness ' SourceStrict ' DecidedStrict ) ( Rec0 t)))

withOrigin :: b -> (t -> b) -> WithOrigin t -> b Source #

newtype EpochNo Source #

An epoch, i.e. the number of the epoch.

Constructors

EpochNo

Instances

Instances details
Enum EpochNo Source #
Instance details

Defined in Cardano.Slotting.Slot

Eq EpochNo Source #
Instance details

Defined in Cardano.Slotting.Slot

Num EpochNo Source #
Instance details

Defined in Cardano.Slotting.Slot

Ord EpochNo Source #
Instance details

Defined in Cardano.Slotting.Slot

Show EpochNo Source #
Instance details

Defined in Cardano.Slotting.Slot

Generic EpochNo Source #
Instance details

Defined in Cardano.Slotting.Slot

ToJSON EpochNo Source #
Instance details

Defined in Cardano.Slotting.Slot

FromJSON EpochNo Source #
Instance details

Defined in Cardano.Slotting.Slot

ToCBOR EpochNo Source #
Instance details

Defined in Cardano.Slotting.Slot

FromCBOR EpochNo Source #
Instance details

Defined in Cardano.Slotting.Slot

NFData EpochNo Source #
Instance details

Defined in Cardano.Slotting.Slot

NoThunks EpochNo Source #
Instance details

Defined in Cardano.Slotting.Slot

Serialise EpochNo Source #
Instance details

Defined in Cardano.Slotting.Slot

type Rep EpochNo Source #
Instance details

Defined in Cardano.Slotting.Slot

type Rep EpochNo = D1 (' MetaData "EpochNo" "Cardano.Slotting.Slot" "cardano-slotting-0.1.0.2-j5NuF73p5IFfcfvmth6tS" ' True ) ( C1 (' MetaCons "EpochNo" ' PrefixI ' True ) ( S1 (' MetaSel (' Just "unEpochNo") ' NoSourceUnpackedness ' NoSourceStrictness ' DecidedLazy ) ( Rec0 Word64 )))

newtype EpochSize Source #

Instances

Instances details
Enum EpochSize Source #
Instance details

Defined in Cardano.Slotting.Slot

Eq EpochSize Source #
Instance details

Defined in Cardano.Slotting.Slot

Integral EpochSize Source #
Instance details

Defined in Cardano.Slotting.Slot

Num EpochSize Source #
Instance details

Defined in Cardano.Slotting.Slot

Ord EpochSize Source #
Instance details

Defined in Cardano.Slotting.Slot

Real EpochSize Source #
Instance details

Defined in Cardano.Slotting.Slot

Show EpochSize Source #
Instance details

Defined in Cardano.Slotting.Slot

Generic EpochSize Source #
Instance details

Defined in Cardano.Slotting.Slot

ToJSON EpochSize Source #
Instance details

Defined in Cardano.Slotting.Slot

FromJSON EpochSize Source #
Instance details

Defined in Cardano.Slotting.Slot

ToCBOR EpochSize Source #
Instance details

Defined in Cardano.Slotting.Slot

FromCBOR EpochSize Source #
Instance details

Defined in Cardano.Slotting.Slot

NFData EpochSize Source #
Instance details

Defined in Cardano.Slotting.Slot

NoThunks EpochSize Source #
Instance details

Defined in Cardano.Slotting.Slot

type Rep EpochSize Source #
Instance details

Defined in Cardano.Slotting.Slot

type Rep EpochSize = D1 (' MetaData "EpochSize" "Cardano.Slotting.Slot" "cardano-slotting-0.1.0.2-j5NuF73p5IFfcfvmth6tS" ' True ) ( C1 (' MetaCons "EpochSize" ' PrefixI ' True ) ( S1 (' MetaSel (' Just "unEpochSize") ' NoSourceUnpackedness ' NoSourceStrictness ' DecidedLazy ) ( Rec0 Word64 )))