ouroboros-consensus-0.1.0.0: Consensus layer for the Ouroboros blockchain protocol
Safe HaskellNone
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
Eq a ⇒ Eq (Enclosing' a) Source # 
Instance details

Defined in Ouroboros.Consensus.Util.Enclose

Methods

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

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

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

Defined in Ouroboros.Consensus.Util.Enclose

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

Defined in Ouroboros.Consensus.Util.Enclose

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

Enclose an action using the given Tracer.