Safe Haskell | Safe-Inferred |
---|---|
Language | Haskell2010 |
Synopsis
Documentation
data EpochAndSlotCount Source #
EpochAndSlotCount
identifies a slot by its EpochNumber
and the number of
slots into the epoch that it sits
Instances
toSlotNumber ∷ EpochSlots → EpochAndSlotCount → SlotNumber Source #
Flatten EpochAndSlotCount
into a single absolute SlotNumber
fromSlotNumber ∷ EpochSlots → SlotNumber → EpochAndSlotCount Source #
Construct a EpochAndSlotCount
from a SlotNumber
, using a given EpochSlots