Safe Haskell | Safe |
---|---|
Language | Haskell2010 |
ISO 4217 compliant and other currencies
Currency Class
class (Show c, Eq c) => Currency c where Source #
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
data CurrencyType Source #
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 |
Currencies
Bitcoin
Chilean Peso
European Union Euro