| 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 Source #
Minimal complete definition
currencyType, isoCode, isoNumericCode, decimalDigits, symbol, exchangeUSD, countries
Methods
currencyType :: c -> CurrencyType Source #
isoCode :: c -> String Source #
ISO 4217 Currency Code
isoNumericCode :: c -> String Source #
ISO 4217 Currency Numeric Code
decimalDigits :: c -> Int Source #
Number of digits after the decimal separator
symbol :: c -> String Source #
Currency UTF-8 symbol
exchangeUSD :: c -> Double Source #
Exchange rate with US Dollar (USD)
countries :: c -> [String] Source #
ISO 3166-1 alpha-2 Country codes where the currency is used
Instances
data CurrencyType Source #
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
Brazilian Real
Constructors
| BRL |
Bitcoin
Constructors
| BTC |
Canadian Dollar
Constructors
| CAD |
Chilean Peso
Constructors
| CLP |
European Union Euro
Constructors
| EUR |
Japanse Yen
Constructors
| JPY |
North Korean Won
Constructors
| KPW |
North Korean Won
Constructors
| KRW |
Mexican Peso
Constructors
| MXN |
Panamanian Balboa
Constructors
| PAB |
Peruvian Sol
Constructors
| PEN |
Paraguayan guaraní
Constructors
| PYG |
SIM's Simoleon
Constructors
| SIM |