Safe Haskell | Safe-Inferred |
---|---|
Language | Haskell2010 |
Synopsis
- newtype Coin = Coin {}
- data family CompactForm a ∷ Type
- newtype DeltaCoin = DeltaCoin Integer
- word64ToCoin ∷ Word64 → Coin
- coinToRational ∷ Coin → Rational
- rationalToCoinViaFloor ∷ Rational → Coin
- rationalToCoinViaCeiling ∷ Rational → Coin
- addDeltaCoin ∷ Coin → DeltaCoin → Coin
- toDeltaCoin ∷ Coin → DeltaCoin
- fromDeltaCoin ∷ DeltaCoin → Maybe Coin
- integerToWord64 ∷ Integer → Maybe Word64
- decodePositiveCoin ∷ String → Decoder s Coin
- compactCoinOrError ∷ HasCallStack ⇒ Coin → CompactForm Coin
Documentation
The amount of value held by a transaction output.
Instances
data family CompactForm a ∷ Type Source #
Instances
Instances
word64ToCoin ∷ Word64 → Coin Source #
toDeltaCoin ∷ Coin → DeltaCoin Source #