Safe Haskell | Safe-Inferred |
---|---|
Language | Haskell2010 |
Documentation
data WithOrigin t Source #
Instances
Block | |
|
Instances
Generic (Block slot hash) Source # | |
(Show slot, Show hash) ⇒ Show (Block slot hash) Source # | |
(Eq slot, Eq hash) ⇒ Eq (Block slot hash) Source # | |
(Ord slot, Ord hash) ⇒ Ord (Block slot hash) Source # | |
Defined in Ouroboros.Network.Point compare ∷ Block slot hash → Block slot hash → Ordering # (<) ∷ Block slot hash → Block slot hash → Bool # (<=) ∷ Block slot hash → Block slot hash → Bool # (>) ∷ Block slot hash → Block slot hash → Bool # (>=) ∷ Block slot hash → Block slot hash → Bool # | |
(NoThunks slot, NoThunks hash) ⇒ NoThunks (Block slot hash) Source # | |
type Rep (Block slot hash) Source # | |
Defined in Ouroboros.Network.Point type Rep (Block slot hash) = D1 ('MetaData "Block" "Ouroboros.Network.Point" "ouroboros-network-api-0.7.2.0-inplace" 'False) (C1 ('MetaCons "Block" 'PrefixI 'True) (S1 ('MetaSel ('Just "blockPointSlot") 'NoSourceUnpackedness 'SourceStrict 'DecidedStrict) (Rec0 slot) :*: S1 ('MetaSel ('Just "blockPointHash") 'NoSourceUnpackedness 'SourceStrict 'DecidedStrict) (Rec0 hash))) |
origin ∷ WithOrigin t Source #
at ∷ t → WithOrigin t Source #
block ∷ slot → hash → WithOrigin (Block slot hash) 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 #