| Safe Haskell | None |
|---|---|
| Language | Haskell2010 |
Cardano.Ledger.Compactible
Contents
Synopsis
- class (Show (CompactForm a), Eq (CompactForm a), EncCBOR (CompactForm a), NoThunks (CompactForm a)) ⇒ Compactible a where
- data CompactForm a
- toCompact ∷ a → Maybe (CompactForm a)
- fromCompact ∷ CompactForm a → a
- partialCompactFL ∷ ∀ (f ∷ Type → Type) c. (Functor f, Compactible c, HasCallStack) ⇒ Lens' (f (CompactForm c)) (f c)
- toCompactPartial ∷ (HasCallStack, Compactible a) ⇒ a → CompactForm a
Compactible
class (Show (CompactForm a), Eq (CompactForm a), EncCBOR (CompactForm a), NoThunks (CompactForm a)) ⇒ Compactible a where Source #
Associated Types
data CompactForm a Source #
Instances
| Compactible Coin Source # | |||||
Defined in Cardano.Ledger.Coin Associated Types
| |||||
| Compactible DeltaCoin Source # | |||||
Defined in Cardano.Ledger.Coin Associated Types
| |||||
partialCompactFL ∷ ∀ (f ∷ Type → Type) c. (Functor f, Compactible c, HasCallStack) ⇒ Lens' (f (CompactForm c)) (f c) Source #
toCompactPartial ∷ (HasCallStack, Compactible a) ⇒ a → CompactForm a Source #