cardano-ledger-shelley-test-1.6.0.0: Test helpers from cardano-ledger-shelley exposed to other packages
Safe HaskellSafe-Inferred
LanguageHaskell2010

Test.Cardano.Ledger.TerseTools

Description

This module suppies tools to tersely describe the differences between 2 values of the same type.

Synopsis

Documentation

class Terse t where Source #

Methods

terse ∷ t → String Source #

Instances

Instances details
Terse Addr Source # 
Instance details

Defined in Test.Cardano.Ledger.TerseTools

Methods

terseAddrString Source #

Terse Coin Source # 
Instance details

Defined in Test.Cardano.Ledger.TerseTools

Methods

terseCoinString Source #

Terse Ptr Source # 
Instance details

Defined in Test.Cardano.Ledger.TerseTools

Methods

tersePtrString Source #

Terse Reward Source # 
Instance details

Defined in Test.Cardano.Ledger.Shelley.Rewards

Methods

terseRewardString Source #

Terse TxId Source # 
Instance details

Defined in Test.Cardano.Ledger.TerseTools

Methods

terseTxIdString Source #

Terse TxIn Source # 
Instance details

Defined in Test.Cardano.Ledger.TerseTools

Methods

terseTxInString Source #

Terse (CompactForm Coin) Source # 
Instance details

Defined in Test.Cardano.Ledger.TerseTools

Terse (Credential r) Source # 
Instance details

Defined in Test.Cardano.Ledger.TerseTools

Methods

terseCredential r → String Source #

Terse x ⇒ Terse (Set x) Source # 
Instance details

Defined in Test.Cardano.Ledger.Shelley.Rewards

Methods

terseSet x → String Source #

(Terse a, Terse b) ⇒ Terse (Case a b) Source # 
Instance details

Defined in Test.Cardano.Ledger.TerseTools

Methods

terseCase a b → String Source #

(Terse a, Terse b) ⇒ Terse (a, b) Source # 
Instance details

Defined in Test.Cardano.Ledger.TerseTools

Methods

terse ∷ (a, b) → String Source #

(Terse a, Terse b, Terse c) ⇒ Terse (a, b, c) Source # 
Instance details

Defined in Test.Cardano.Ledger.TerseTools

Methods

terse ∷ (a, b, c) → String Source #

data Case a b Source #

Constructors

OnLeft !a !b 
OnRight !a !b 
SameKey !a !b !b 

Instances

Instances details
(Terse a, Terse b) ⇒ Show (Case a b) Source # 
Instance details

Defined in Test.Cardano.Ledger.TerseTools

Methods

showsPrecIntCase a b → ShowS Source #

showCase a b → String Source #

showList ∷ [Case a b] → ShowS Source #

(Terse a, Terse b) ⇒ Terse (Case a b) Source # 
Instance details

Defined in Test.Cardano.Ledger.TerseTools

Methods

terseCase a b → String Source #

caseKeyCase p b → p Source #

differences ∷ (Ord a, Eq b) ⇒ [(a, b)] → [(a, b)] → [Case a b] Source #

we assume the lists are lexigraphically sorted

mapdiffs ∷ (Ord a, Eq b) ⇒ Map a b → Map a b → [Case a b] Source #

terselistTerse a ⇒ [Char] → [a] → [Char] Source #

terselistfilterTerse a ⇒ [Char] → (a → Bool) → [a] → [Char] Source #

tersemap ∷ (Terse k, Terse a) ⇒ [Char] → Map k a → [Char] Source #

tersemapfilter ∷ (Terse k, Terse a) ⇒ [Char] → (a → Bool) → Map k a → [Char] Source #

tersemapdiffs ∷ (Terse a, Terse b, Ord a, Eq b) ⇒ StringMap a b → Map a b → [Char] Source #

terseutxoTerse (TxOut era) ⇒ StringUTxO era → String Source #