| Safe Haskell | Safe |
|---|---|
| Language | Haskell2010 |
Data.Currency.Currencies
Contents
Description
ISO 4217 compliant and other currencies
Synopsis
- class (Show c, Eq c) => Currency c where
- currencyType :: c -> CurrencyType
- isoCode :: c -> String
- isoNumericCode :: c -> String
- decimalDigits :: c -> Int
- symbol :: c -> String
- exchangeUSD :: c -> Double
- countries :: c -> [String]
- data CurrencyType
- data BRL = BRL
- data BTC = BTC
- data CAD = CAD
- data CLP = CLP
- data EUR = EUR
- data JPY = JPY
- data KPW = KPW
- data KRW = KRW
- data MXN = MXN
- data PAB = PAB
- data PEN = PEN
- data PYG = PYG
- data SIM = SIM
- data USD = USD
Currency Class
class (Show c, Eq c) => Currency c where #
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
Instances
| Currency USD # | |
Defined in Data.Currency.Currencies | |
| Currency SIM # | |
Defined in Data.Currency.Currencies | |
| Currency PYG # | |
Defined in Data.Currency.Currencies | |
| Currency PEN # | |
Defined in Data.Currency.Currencies | |
| Currency PAB # | |
Defined in Data.Currency.Currencies | |
| Currency MXN # | |
Defined in Data.Currency.Currencies | |
| Currency KRW # | |
Defined in Data.Currency.Currencies | |
| Currency KPW # | |
Defined in Data.Currency.Currencies | |
| Currency JPY # | |
Defined in Data.Currency.Currencies | |
| Currency EUR # | |
Defined in Data.Currency.Currencies | |
| Currency CLP # | |
Defined in Data.Currency.Currencies | |
| Currency CAD # | |
Defined in Data.Currency.Currencies | |
| Currency BTC # | |
Defined in Data.Currency.Currencies | |
| Currency BRL # | |
Defined in Data.Currency.Currencies | |
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
| Eq CurrencyType # | |
Defined in Data.Currency.Currencies | |
| Read CurrencyType # | |
Defined in Data.Currency.Currencies Methods readsPrec :: Int -> ReadS CurrencyType # readList :: ReadS [CurrencyType] # | |
| Show CurrencyType # | |
Defined in Data.Currency.Currencies Methods showsPrec :: Int -> CurrencyType -> ShowS # show :: CurrencyType -> String # showList :: [CurrencyType] -> ShowS # | |
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 |