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 c → IncrementalStake c → String
- terseutxo ∷ (Era era, Terse (TxOut era)) ⇒ String → UTxO era → String
Documentation
Instances
Terse Coin Source # | |
Terse Ptr Source # | |
Terse (Addr c) Source # | |
Terse (CompactForm Coin) Source # | |
Defined in Test.Cardano.Ledger.TerseTools | |
Terse (Reward c) Source # | |
Terse (TxId era) Source # | |
Crypto c ⇒ Terse (TxIn c) Source # | |
Terse x ⇒ Terse (Set x) Source # | |
Terse (Credential keyrole c) Source # | |
Defined in Test.Cardano.Ledger.TerseTools terse ∷ Credential keyrole c → String 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 |
differences ∷ (Ord a, Eq b) ⇒ [(a, b)] → [(a, b)] → [Case a b] Source #
we assume the lists are lexigraphically sorted
tersediffincremental ∷ String → IncrementalStake c → IncrementalStake c → String Source #