Safe Haskell | None |
---|---|
Language | Haskell2010 |
Documentation
data WithOrigin t #
Instances
Block | |
|
Instances
Generic (Block slot hash) Source # | |||||
Defined in Ouroboros.Network.Point
| |||||
(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 # max :: Block slot hash -> Block slot hash -> Block slot hash # min :: Block slot hash -> Block slot hash -> Block slot hash # | |||||
(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.11.0.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 #
at :: t -> WithOrigin t #
block :: slot -> hash -> WithOrigin (Block slot hash) Source #
fromWithOrigin :: t -> WithOrigin t -> t #
withOrigin :: b -> (t -> b) -> WithOrigin t -> b #
withOriginToMaybe :: WithOrigin t -> Maybe t #
withOriginFromMaybe :: Maybe t -> WithOrigin t #