Safe Haskell | None |
---|---|
Language | Haskell2010 |
Types for the API
Documentation
A positive and non-0 ratio
normaliseRate :: Rate -> Rate Source #
Ensure that a rate is internally normalised.
This is a requirement for Validity
rateToRational :: Rate -> Rational Source #
Convert a rate to a 'Ratio Integer' instead of 'Ratio Natural'.
This is a lossless transformation.
rateToDouble :: Rate -> Double Source #
Convert a rate to a Double
.
This may not be a lossless transformation
A sum-type of the supported currencies on fixer.io
AUD | |
BGN | |
BRL | |
CAD | |
CHF | |
CNY | |
CZK | |
DKK | |
EUR | |
GBP | |
HKD | |
HRK | |
HUF | |
IDR | |
ILS | |
INR | |
JPY | |
KRW | |
MXN | |
MYR | |
NOK | |
NZD | |
PHP | |
PLN | |
RON | |
RUB | |
SEK | |
SGD | |
THB | |
TRY | |
USD | |
ZAR |
A nonempty list of Currency
s