Safe Haskell | Safe-Inferred |
---|---|
Language | Haskell2010 |
This module suppies tools to tersely describe the differences between 2 values of the same type.
Synopsis
- class Terse t where
- data Case a b
- caseKey ∷ Case p b → p
- differences ∷ (Ord a, Eq b) ⇒ [(a, b)] → [(a, b)] → [Case a b]
- mapdiffs ∷ (Ord a, Eq b) ⇒ Map a b → Map a b → [Case a b]
- terselist ∷ Terse a ⇒ [Char] → [a] → [Char]
- terselistfilter ∷ Terse a ⇒ [Char] → (a → Bool) → [a] → [Char]
- tersemap ∷ (Terse k, Terse a) ⇒ [Char] → Map k a → [Char]
- tersemapfilter ∷ (Terse k, Terse a) ⇒ [Char] → (a → Bool) → Map k a → [Char]
- tersemapdiffs ∷ (Terse a, Terse b, Ord a, Eq b) ⇒ String → Map a b → Map a b → [Char]
- tersediffincremental ∷ String → IncrementalStake → IncrementalStake → String
- terseutxo ∷ Terse (TxOut era) ⇒ String → UTxO era → String
Documentation
Instances
Terse Addr Source # | |
Terse Coin Source # | |
Terse Ptr Source # | |
Terse Reward Source # | |
Terse TxId Source # | |
Terse TxIn Source # | |
Terse (CompactForm Coin) Source # | |
Defined in Test.Cardano.Ledger.TerseTools | |
Terse (Credential r) Source # | |
Defined in Test.Cardano.Ledger.TerseTools terse ∷ Credential r → String Source # | |
Terse x ⇒ Terse (Set x) Source # | |
(Terse a, Terse b) ⇒ Terse (Case a b) Source # | |
(Terse a, Terse b) ⇒ Terse (a, b) Source # | |
Defined in Test.Cardano.Ledger.TerseTools | |
(Terse a, Terse b, Terse c) ⇒ Terse (a, b, c) Source # | |
Defined in Test.Cardano.Ledger.TerseTools |