Safe Haskell | None |
---|---|
Language | Haskell2010 |
Synopsis
- newtype SlotNo = SlotNo { }
- data WithOrigin t
- at :: t -> WithOrigin t
- origin :: WithOrigin t
- fromWithOrigin :: t -> WithOrigin t -> t
- withOrigin :: b -> (t -> b) -> WithOrigin t -> b
- withOriginToMaybe :: WithOrigin t -> Maybe t
- withOriginFromMaybe :: Maybe t -> WithOrigin t
- newtype EpochNo = EpochNo { }
- newtype EpochSize = EpochSize { }
Documentation
The 0-based index for the Ourboros time slot.
Instances
Bounded SlotNo Source # | |
Enum SlotNo Source # | |
Defined in Cardano.Slotting.Slot succ :: SlotNo -> SlotNo Source # pred :: SlotNo -> SlotNo Source # toEnum :: Int -> SlotNo Source # fromEnum :: SlotNo -> Int Source # enumFrom :: SlotNo -> [ SlotNo ] Source # enumFromThen :: SlotNo -> SlotNo -> [ SlotNo ] Source # enumFromTo :: SlotNo -> SlotNo -> [ SlotNo ] Source # enumFromThenTo :: SlotNo -> SlotNo -> SlotNo -> [ SlotNo ] Source # |
|
Eq SlotNo Source # | |
Num SlotNo Source # | |
Defined in Cardano.Slotting.Slot |
|
Ord SlotNo Source # | |
Show SlotNo Source # | |
Generic SlotNo Source # | |
ToJSON SlotNo Source # | |
FromJSON SlotNo Source # | |
ToCBOR SlotNo Source # | |
FromCBOR SlotNo Source # | |
NFData SlotNo Source # | |
Defined in Cardano.Slotting.Slot |
|
NoThunks SlotNo Source # | |
Serialise SlotNo Source # | |
type Rep SlotNo Source # | |
Defined in Cardano.Slotting.Slot |
data WithOrigin t Source #
Instances
at :: t -> WithOrigin t Source #
origin :: WithOrigin t Source #
fromWithOrigin :: t -> WithOrigin t -> t Source #
withOrigin :: b -> (t -> b) -> WithOrigin t -> b Source #
withOriginToMaybe :: WithOrigin t -> Maybe t Source #
withOriginFromMaybe :: Maybe t -> WithOrigin t Source #
An epoch, i.e. the number of the epoch.
Instances
Enum EpochNo Source # | |
Defined in Cardano.Slotting.Slot succ :: EpochNo -> EpochNo Source # pred :: EpochNo -> EpochNo Source # toEnum :: Int -> EpochNo Source # fromEnum :: EpochNo -> Int Source # enumFrom :: EpochNo -> [ EpochNo ] Source # enumFromThen :: EpochNo -> EpochNo -> [ EpochNo ] Source # enumFromTo :: EpochNo -> EpochNo -> [ EpochNo ] Source # enumFromThenTo :: EpochNo -> EpochNo -> EpochNo -> [ EpochNo ] Source # |
|
Eq EpochNo Source # | |
Num EpochNo Source # | |
Defined in Cardano.Slotting.Slot |
|
Ord EpochNo Source # | |
Defined in Cardano.Slotting.Slot |
|
Show EpochNo Source # | |
Generic EpochNo Source # | |
ToJSON EpochNo Source # | |
FromJSON EpochNo Source # | |
ToCBOR EpochNo Source # | |
FromCBOR EpochNo Source # | |
NFData EpochNo Source # | |
Defined in Cardano.Slotting.Slot |
|
NoThunks EpochNo Source # | |
Serialise EpochNo Source # | |
type Rep EpochNo Source # | |
Defined in Cardano.Slotting.Slot |