ouroboros-consensus-0.21.0.0: Consensus layer for the Ouroboros blockchain protocol
Safe HaskellSafe-Inferred
LanguageHaskell2010

Ouroboros.Consensus.Util.Enclose

Description

Utility functions for enclosing a code segment with tracing events.

Synopsis

Documentation

data Enclosing' a Source #

Constructors

RisingEdge

Preceding a specific code segment.

FallingEdgeWith !a

Succeeding a specific code segment, with extra information.

Instances

Instances details
Show a ⇒ Show (Enclosing' a) Source # 
Instance details

Defined in Ouroboros.Consensus.Util.Enclose

Methods

showsPrecIntEnclosing' a → ShowS #

showEnclosing' a → String #

showList ∷ [Enclosing' a] → ShowS #

Eq a ⇒ Eq (Enclosing' a) Source # 
Instance details

Defined in Ouroboros.Consensus.Util.Enclose

Methods

(==)Enclosing' a → Enclosing' a → Bool #

(/=)Enclosing' a → Enclosing' a → Bool #

Ord a ⇒ Ord (Enclosing' a) Source # 
Instance details

Defined in Ouroboros.Consensus.Util.Enclose

Methods

compareEnclosing' a → Enclosing' a → Ordering #

(<)Enclosing' a → Enclosing' a → Bool #

(<=)Enclosing' a → Enclosing' a → Bool #

(>)Enclosing' a → Enclosing' a → Bool #

(>=)Enclosing' a → Enclosing' a → Bool #

maxEnclosing' a → Enclosing' a → Enclosing' a #

minEnclosing' a → Enclosing' a → Enclosing' a #

encloseWithApplicative m ⇒ Tracer m Enclosing → m a → m a Source #

Enclose an action using the given Tracer.