| Safe Haskell | Safe |
|---|---|
| Language | Haskell2010 |
Data.Currency.Currencies
Contents
Description
ISO 4217 compliant and other currencies
Currency Class
class (Show c, Eq c) => Currency c where #
Minimal complete definition
currencyType, isoCode, isoNumericCode, decimalDigits, symbol, exchangeUSD, countries
Methods
currencyType :: c -> CurrencyType #
ISO 4217 Currency Code
isoNumericCode :: c -> String #
ISO 4217 Currency Numeric Code
decimalDigits :: c -> Int #
Number of digits after the decimal separator
Currency UTF-8 symbol
exchangeUSD :: c -> Double #
Exchange rate with US Dollar (USD)
ISO 3166-1 alpha-2 Country codes where the currency is used
data CurrencyType #
Constructors
| Circulating | Currencies recognized as legal tender |
| Local | Currencies with validity only in particular geographical localities |
| Supranational | Currencies for procedural purposes and precious metals (X currencies) |
| Cryptocurrency | Digital, cryptography based currencies |
| Fictional | Currencies used in games, movies, novels, and other fictional setups |
Instances
Currencies
European Union Euro
Constructors
| EUR |