Safe Haskell | None |
---|---|
Language | Haskell2010 |
Synopsis
-
class
(
Show
(
CompactForm
a),
Eq
(
CompactForm
a),
ToCBOR
(
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), ToCBOR ( CompactForm a)) => Compactible a where Source #
data CompactForm a :: Type Source #
toCompact :: a -> Maybe ( CompactForm a) Source #
fromCompact :: CompactForm a -> a Source #
Instances
Compactible DeltaCoin Source # | |
Defined in Cardano.Ledger.Coin data CompactForm DeltaCoin Source # |
|
Compactible Coin Source # | |
Defined in Cardano.Ledger.Coin data CompactForm Coin Source # toCompact :: Coin -> Maybe ( CompactForm Coin ) Source # fromCompact :: CompactForm Coin -> Coin Source # |