consensus-diffusion-test
Safe HaskellNone
LanguageHaskell2010

Test.Util.TersePrinting

Description

Helpers for printing various objects in a terse way. Terse printing is similar to that provided by the Condense typeclass except it can be sometimes even more compact and it is very specific to tests.

Synopsis

Documentation

class Terse blk where Source #

Helpers for printing various objects in a terse way. Terse printing is similar to that provided by the Condense typeclass except it can be sometimes even more compact and it is very specific to tests.

Methods

tersePointPoint blk → String Source #

Same as terseBlock for points.

terseFragmentAnchoredFragment blk → String Source #

Print a fragment of TestBlock in a terse way.

terseHFragmentAnchoredFragment (Header blk) → String Source #

Same as terseFragment for fragments of headers.

terseHWTFragmentAnchoredFragment (HeaderWithTime blk) → String Source #

Same as terseFragment for fragments of headers with time.

terseBlock ∷ blk → String Source #

terseTipTip blk → String Source #

Same as tersePoint for tips.

terseHeaderHeader blk → String Source #

Same as terseBlock for headers.

terseAnchorTerse blk ⇒ Anchor blk → String Source #

Same as tersePoint for anchors.

terseMaybe ∷ (a → String) → Maybe a → String Source #

Same as terseWithOrigin for Maybe.

terseWithOrigin ∷ (a → String) → WithOrigin a → String Source #

Given a printer for elements of type a, prints a WithOrigin a in a terse way. Origin shows as G.