Safe Haskell | Safe-Inferred |
---|---|
Language | Haskell2010 |
Synopsis
- data (a :: Symbol) :> (b :: Symbol)
- exchangeFromTruncate :: forall (a :: Symbol) (b :: Symbol) (s :: S). Term s (PTagged (a :> b) PRational :--> (PTagged a PInteger :--> PTagged b PInteger))
- exchangeToTruncate :: forall (a :: Symbol) (b :: Symbol) (s :: S). Term s (PTagged (a :> b) PRational :--> (PTagged b PInteger :--> PTagged a PInteger))
- exchangeFrom :: forall (a :: Symbol) (b :: Symbol) (s :: S). Term s (PTagged (a :> b) PRational :--> (PTagged a PInteger :--> PTagged b PRational))
- exchangeTo :: forall (a :: Symbol) (b :: Symbol) (s :: S). Term s (PTagged (a :> b) PRational :--> (PTagged b PInteger :--> PTagged a PRational))
Documentation
data (a :: Symbol) :> (b :: Symbol) Source #
Represents an exchange from a
to b
.
For example, suppose 1.00 ADA is worth 2.00 USD. Then ADA
represents scaling by 2.0.:>
USD
Since: 3.9.0
Exchange-rate conversions
exchangeFromTruncate :: forall (a :: Symbol) (b :: Symbol) (s :: S). Term s (PTagged (a :> b) PRational :--> (PTagged a PInteger :--> PTagged b PInteger)) Source #
Exchange from one currency to another, truncating the result.
Since: 3.9.0
exchangeToTruncate :: forall (a :: Symbol) (b :: Symbol) (s :: S). Term s (PTagged (a :> b) PRational :--> (PTagged b PInteger :--> PTagged a PInteger)) Source #
Exchange from one currency to another, truncating the result (inverse direction).
Since: 3.9.0