ouroboros-network-0.1.0.1: A networking layer for the Ouroboros blockchain protocol
Safe Haskell None
Language Haskell2010

Ouroboros.Network.Point

Documentation

data WithOrigin t Source #

Constructors

Origin
At !t

Instances

Instances details
Functor WithOrigin
Instance details

Defined in Cardano.Slotting.Slot

Foldable WithOrigin
Instance details

Defined in Cardano.Slotting.Slot

Traversable WithOrigin
Instance details

Defined in Cardano.Slotting.Slot

Bounded t => Bounded ( WithOrigin t)
Instance details

Defined in Cardano.Slotting.Slot

Eq t => Eq ( WithOrigin t)
Instance details

Defined in Cardano.Slotting.Slot

Ord t => Ord ( WithOrigin t)
Instance details

Defined in Cardano.Slotting.Slot

Show t => Show ( WithOrigin t)
Instance details

Defined in Cardano.Slotting.Slot

Generic ( WithOrigin t)
Instance details

Defined in Cardano.Slotting.Slot

Associated Types

type Rep ( WithOrigin t) :: Type -> Type Source #

( Serialise t, Typeable t) => ToCBOR ( WithOrigin t)
Instance details

Defined in Cardano.Slotting.Slot

( Serialise t, Typeable t) => FromCBOR ( WithOrigin t)
Instance details

Defined in Cardano.Slotting.Slot

NFData a => NFData ( WithOrigin a)
Instance details

Defined in Cardano.Slotting.Slot

NoThunks t => NoThunks ( WithOrigin t)
Instance details

Defined in Cardano.Slotting.Slot

Serialise t => Serialise ( WithOrigin t)
Instance details

Defined in Cardano.Slotting.Slot

HasHeader block => Anchorable ( WithOrigin SlotNo ) ( Anchor block) block Source #
Instance details

Defined in Ouroboros.Network.AnchoredFragment

type Rep ( WithOrigin t)
Instance details

Defined in Cardano.Slotting.Slot

type Rep ( WithOrigin t) = D1 (' MetaData "WithOrigin" "Cardano.Slotting.Slot" "cardano-slotting-0.1.0.2-j5NuF73p5IFfcfvmth6tS" ' False ) ( C1 (' MetaCons "Origin" ' PrefixI ' False ) ( U1 :: Type -> Type ) :+: C1 (' MetaCons "At" ' PrefixI ' False ) ( S1 (' MetaSel (' Nothing :: Maybe Symbol ) ' NoSourceUnpackedness ' SourceStrict ' DecidedStrict ) ( Rec0 t)))

data Block slot hash Source #

Constructors

Block

Fields

Instances

Instances details
( Eq slot, Eq hash) => Eq ( Block slot hash) Source #
Instance details

Defined in Ouroboros.Network.Point

Methods

(==) :: Block slot hash -> Block slot hash -> Bool Source #

(/=) :: Block slot hash -> Block slot hash -> Bool Source #

( Ord slot, Ord hash) => Ord ( Block slot hash) Source #
Instance details

Defined in Ouroboros.Network.Point

Methods

compare :: Block slot hash -> Block slot hash -> Ordering Source #

(<) :: Block slot hash -> Block slot hash -> Bool Source #

(<=) :: Block slot hash -> Block slot hash -> Bool Source #

(>) :: Block slot hash -> Block slot hash -> Bool Source #

(>=) :: Block slot hash -> Block slot hash -> Bool Source #

max :: Block slot hash -> Block slot hash -> Block slot hash Source #

min :: Block slot hash -> Block slot hash -> Block slot hash Source #

( Show slot, Show hash) => Show ( Block slot hash) Source #
Instance details

Defined in Ouroboros.Network.Point

Generic ( Block slot hash) Source #
Instance details

Defined in Ouroboros.Network.Point

Associated Types

type Rep ( Block slot hash) :: Type -> Type Source #

Methods

from :: Block slot hash -> Rep ( Block slot hash) x Source #

to :: Rep ( Block slot hash) x -> Block slot hash Source #

( NoThunks slot, NoThunks hash) => NoThunks ( Block slot hash) Source #
Instance details

Defined in Ouroboros.Network.Point

type Rep ( Block slot hash) Source #
Instance details

Defined in Ouroboros.Network.Point

type Rep ( Block slot hash) = D1 (' MetaData "Block" "Ouroboros.Network.Point" "ouroboros-network-0.1.0.1-2UgqzRSdBh49QYumtriFSI" ' False ) ( C1 (' MetaCons "Block" ' PrefixI ' True ) ( S1 (' MetaSel (' Just "blockPointSlot") ' NoSourceUnpackedness ' SourceStrict ' DecidedStrict ) ( Rec0 slot) :*: S1 (' MetaSel (' Just "blockPointHash") ' NoSourceUnpackedness ' SourceStrict ' DecidedStrict ) ( Rec0 hash)))

block :: slot -> hash -> WithOrigin ( Block slot hash) Source #

withOrigin :: b -> (t -> b) -> WithOrigin t -> b Source #