Safe Haskell | Safe-Inferred |
---|---|
Language | Haskell2010 |
Synopsis
- class (Show (CompactForm a), Eq (CompactForm a), EncCBOR (CompactForm a), NoThunks (CompactForm a)) ⇒ Compactible a where
- data CompactForm a ∷ Type
- toCompact ∷ a → Maybe (CompactForm a)
- fromCompact ∷ CompactForm a → a
Compactible
class (Show (CompactForm a), Eq (CompactForm a), EncCBOR (CompactForm a), NoThunks (CompactForm a)) ⇒ Compactible a where Source #
data CompactForm a ∷ Type Source #
toCompact ∷ a → Maybe (CompactForm a) Source #
fromCompact ∷ CompactForm a → a Source #
Instances
Compactible Coin Source # | |
Defined in Cardano.Ledger.Coin data CompactForm Coin Source # | |
Compactible DeltaCoin Source # | |
Defined in Cardano.Ledger.Coin data CompactForm DeltaCoin Source # |