Safe Haskell | None |
---|---|
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
- integerToWord64 :: Integer -> Maybe Word64
Documentation
The amount of value held by a transaction output.
Instances
data family CompactForm a :: Type Source #
Instances
Instances
word64ToCoin :: Word64 -> Coin Source #
coinToRational :: Coin -> Rational Source #
toDeltaCoin :: Coin -> DeltaCoin Source #