Safe Haskell | None |
---|---|
Language | Haskell2010 |
Slots and slot ranges.
Documentation
The slot number. This is a good proxy for time, since on the Cardano blockchain slots pass at a constant rate.
Instances
Enum Slot Source # | |
Eq Slot Source # | |
Integral Slot Source # | |
Defined in Ledger.Slot | |
Data Slot Source # | |
Defined in Ledger.Slot gfoldl :: (forall d b. Data d => c (d -> b) -> d -> c b) -> (forall g. g -> c g) -> Slot -> c Slot Source # gunfold :: (forall b r. Data b => c (b -> r) -> c r) -> (forall r. r -> c r) -> Constr -> c Slot Source # toConstr :: Slot -> Constr Source # dataTypeOf :: Slot -> DataType Source # dataCast1 :: Typeable t => (forall d. Data d => c (t d)) -> Maybe (c Slot) Source # dataCast2 :: Typeable t => (forall d e. (Data d, Data e) => c (t d e)) -> Maybe (c Slot) Source # gmapT :: (forall b. Data b => b -> b) -> Slot -> Slot Source # gmapQl :: (r -> r' -> r) -> r -> (forall d. Data d => d -> r') -> Slot -> r Source # gmapQr :: forall r r'. (r' -> r -> r) -> r -> (forall d. Data d => d -> r') -> Slot -> r Source # gmapQ :: (forall d. Data d => d -> u) -> Slot -> [u] Source # gmapQi :: Int -> (forall d. Data d => d -> u) -> Slot -> u Source # gmapM :: Monad m => (forall d. Data d => d -> m d) -> Slot -> m Slot Source # gmapMp :: MonadPlus m => (forall d. Data d => d -> m d) -> Slot -> m Slot Source # gmapMo :: MonadPlus m => (forall d. Data d => d -> m d) -> Slot -> m Slot Source # | |
Num Slot Source # | |
Ord Slot Source # | |
Real Slot Source # | |
Defined in Ledger.Slot toRational :: Slot -> Rational Source # | |
Show Slot Source # | |
Generic Slot Source # | |
Serialise Slot Source # | |
Defined in Ledger.Slot encodeList :: [Slot] -> Encoding decodeList :: Decoder s [Slot] | |
Hashable Slot Source # | |
Defined in Ledger.Slot | |
FromJSON Slot Source # | |
Defined in Ledger.Slot parseJSON :: Value -> Parser Slot parseJSONList :: Value -> Parser [Slot] | |
FromJSONKey Slot Source # | |
Defined in Ledger.Slot fromJSONKey :: FromJSONKeyFunction Slot fromJSONKeyList :: FromJSONKeyFunction [Slot] | |
ToJSON Slot Source # | |
Defined in Ledger.Slot | |
ToJSONKey Slot Source # | |
Defined in Ledger.Slot toJSONKey :: ToJSONKeyFunction Slot toJSONKeyList :: ToJSONKeyFunction [Slot] | |
Enum Slot Source # | |
Eq Slot Source # | |
Defined in Ledger.Slot | |
AdditiveGroup Slot Source # | |
Defined in Ledger.Slot | |
AdditiveMonoid Slot Source # | |
Defined in Ledger.Slot | |
AdditiveSemigroup Slot Source # | |
Defined in Ledger.Slot | |
Ord Slot Source # | |
Pretty Slot Source # | |
Defined in Ledger.Slot | |
FromData Slot Source # | |
Defined in Ledger.Slot fromBuiltinData :: BuiltinData -> Maybe Slot | |
ToData Slot Source # | |
Defined in Ledger.Slot toBuiltinData :: Slot -> BuiltinData | |
UnsafeFromData Slot Source # | |
Defined in Ledger.Slot unsafeFromBuiltinData :: BuiltinData -> Slot | |
Lift DefaultUni Slot Source # | |
Defined in Ledger.Slot | |
Typeable DefaultUni Slot Source # | |
Defined in Ledger.Slot | |
type Rep Slot Source # | |
Defined in Ledger.Slot |
width :: SlotRange -> Maybe Integer Source #
Number of Slot
s covered by the interval, if finite. width (from x) == Nothing
.
Orphan instances
Serialise a => Serialise (Interval a) Source # | |
encode :: Interval a -> Encoding decode :: Decoder s (Interval a) encodeList :: [Interval a] -> Encoding decodeList :: Decoder s [Interval a] | |
Serialise a => Serialise (Extended a) Source # | |
encode :: Extended a -> Encoding decode :: Decoder s (Extended a) encodeList :: [Extended a] -> Encoding decodeList :: Decoder s [Extended a] | |
Serialise a => Serialise (LowerBound a) Source # | |
encode :: LowerBound a -> Encoding decode :: Decoder s (LowerBound a) encodeList :: [LowerBound a] -> Encoding decodeList :: Decoder s [LowerBound a] | |
Serialise a => Serialise (UpperBound a) Source # | |
encode :: UpperBound a -> Encoding decode :: Decoder s (UpperBound a) encodeList :: [UpperBound a] -> Encoding decodeList :: Decoder s [UpperBound a] | |
Hashable a => Hashable (Interval a) Source # | |
Hashable a => Hashable (Extended a) Source # | |
Hashable a => Hashable (LowerBound a) Source # | |
hashWithSalt :: Int -> LowerBound a -> Int hash :: LowerBound a -> Int | |
Hashable a => Hashable (UpperBound a) Source # | |
hashWithSalt :: Int -> UpperBound a -> Int hash :: UpperBound a -> Int | |
FromJSON a => FromJSON (Interval a) Source # | |
parseJSON :: Value -> Parser (Interval a) parseJSONList :: Value -> Parser [Interval a] | |
FromJSON a => FromJSON (Extended a) Source # | |
parseJSON :: Value -> Parser (Extended a) parseJSONList :: Value -> Parser [Extended a] | |
FromJSON a => FromJSON (LowerBound a) Source # | |
parseJSON :: Value -> Parser (LowerBound a) parseJSONList :: Value -> Parser [LowerBound a] | |
FromJSON a => FromJSON (UpperBound a) Source # | |
parseJSON :: Value -> Parser (UpperBound a) parseJSONList :: Value -> Parser [UpperBound a] | |
ToJSON a => ToJSON (Interval a) Source # | |
toEncoding :: Interval a -> Encoding toJSONList :: [Interval a] -> Value toEncodingList :: [Interval a] -> Encoding | |
ToJSON a => ToJSON (Extended a) Source # | |
toEncoding :: Extended a -> Encoding toJSONList :: [Extended a] -> Value toEncodingList :: [Extended a] -> Encoding | |
ToJSON a => ToJSON (LowerBound a) Source # | |
toJSON :: LowerBound a -> Value toEncoding :: LowerBound a -> Encoding toJSONList :: [LowerBound a] -> Value toEncodingList :: [LowerBound a] -> Encoding | |
ToJSON a => ToJSON (UpperBound a) Source # | |
toJSON :: UpperBound a -> Value toEncoding :: UpperBound a -> Encoding toJSONList :: [UpperBound a] -> Value toEncodingList :: [UpperBound a] -> Encoding |