eurofxref-0.2.1: Free foreign exchange/currency feed from the European Central Bank
Financial.CurrencyRates
Synopsis
newtype Currency Source
A standard three-letter currency name.
Constructors
Instances
data Rates a Source
A table of currency rates.
Fields
The reference currency
The time when the rates were valid
Value of one unit of the reference currency in each currency
rebase :: Fractional a => Currency -> Rates a -> Rates aSource
Re-base the rates to a different reference currency, such that the new rates give the value of one unit of that currency.