Safe Haskell | Safe-Inferred |
---|---|
Language | Haskell2010 |
A Currency representation as specified in the ISO-4217 standard
Synopsis
- data Currency = Currency {}
- data Alpha
- = AED
- | AFN
- | ALL
- | AMD
- | ANG
- | AOA
- | ARS
- | AUD
- | AWG
- | AZN
- | BAM
- | BBD
- | BDT
- | BGN
- | BHD
- | BIF
- | BMD
- | BND
- | BOB
- | BOV
- | BRL
- | BSD
- | BTN
- | BWP
- | BYN
- | BZD
- | CAD
- | CDF
- | CHE
- | CHF
- | CHW
- | CLF
- | CLP
- | CNY
- | COP
- | COU
- | CRC
- | CUC
- | CUP
- | CVE
- | CZK
- | DJF
- | DKK
- | DOP
- | DZD
- | EGP
- | ERN
- | ETB
- | EUR
- | FJD
- | FKP
- | GBP
- | GEL
- | GHS
- | GIP
- | GMD
- | GNF
- | GTQ
- | GYD
- | HKD
- | HNL
- | HRK
- | HTG
- | HUF
- | IDR
- | ILS
- | INR
- | IQD
- | IRR
- | ISK
- | JMD
- | JOD
- | JPY
- | KES
- | KGS
- | KHR
- | KMF
- | KPW
- | KRW
- | KWD
- | KYD
- | KZT
- | LAK
- | LBP
- | LKR
- | LRD
- | LSL
- | LYD
- | MAD
- | MDL
- | MGA
- | MKD
- | MMK
- | MNT
- | MOP
- | MRO
- | MUR
- | MVR
- | MWK
- | MXN
- | MXV
- | MYR
- | MZN
- | NAD
- | NGN
- | NIO
- | NOK
- | NPR
- | NZD
- | OMR
- | PAB
- | PEN
- | PGK
- | PHP
- | PKR
- | PLN
- | PYG
- | QAR
- | RON
- | RSD
- | RUB
- | RWF
- | SAR
- | SBD
- | SCR
- | SDG
- | SEK
- | SGD
- | SHP
- | SLL
- | SOS
- | SRD
- | SSP
- | STD
- | SVC
- | SYP
- | SZL
- | THB
- | TJS
- | TMT
- | TND
- | TOP
- | TRY
- | TTD
- | TWD
- | TZS
- | UAH
- | UGX
- | USD
- | USN
- | UYI
- | UYU
- | UZS
- | VEF
- | VND
- | VUV
- | WST
- | XAF
- | XAG
- | XAU
- | XBA
- | XBB
- | XBC
- | XBD
- | XCD
- | XDR
- | XOF
- | XPD
- | XPF
- | XPT
- | XSU
- | XTS
- | XUA
- | XXX
- | YER
- | ZAR
- | ZMW
- | ZWL
- currencies :: [Currency]
- fromAlpha :: Alpha -> Currency
Types
Actual representation of a currency
Instances
FromJSON Currency Source # | |
ToJSON Currency Source # | |
Data Currency Source # | |
Defined in Data.Currency gfoldl :: (forall d b. Data d => c (d -> b) -> d -> c b) -> (forall g. g -> c g) -> Currency -> c Currency # gunfold :: (forall b r. Data b => c (b -> r) -> c r) -> (forall r. r -> c r) -> Constr -> c Currency # toConstr :: Currency -> Constr # dataTypeOf :: Currency -> DataType # dataCast1 :: Typeable t => (forall d. Data d => c (t d)) -> Maybe (c Currency) # dataCast2 :: Typeable t => (forall d e. (Data d, Data e) => c (t d e)) -> Maybe (c Currency) # gmapT :: (forall b. Data b => b -> b) -> Currency -> Currency # gmapQl :: (r -> r' -> r) -> r -> (forall d. Data d => d -> r') -> Currency -> r # gmapQr :: forall r r'. (r' -> r -> r) -> r -> (forall d. Data d => d -> r') -> Currency -> r # gmapQ :: (forall d. Data d => d -> u) -> Currency -> [u] # gmapQi :: Int -> (forall d. Data d => d -> u) -> Currency -> u # gmapM :: Monad m => (forall d. Data d => d -> m d) -> Currency -> m Currency # gmapMp :: MonadPlus m => (forall d. Data d => d -> m d) -> Currency -> m Currency # gmapMo :: MonadPlus m => (forall d. Data d => d -> m d) -> Currency -> m Currency # | |
Generic Currency Source # | |
Read Currency Source # | |
Show Currency Source # | |
Val Currency Source # | |
NFData Currency Source # | |
Defined in Data.Currency | |
Eq Currency Source # | |
Random Currency Source # | |
type Rep Currency Source # | |
Defined in Data.Currency type Rep Currency = D1 ('MetaData "Currency" "Data.Currency" "currency-codes-3.0.0.1-1hULtd9MQx1LbYuAy4bxK4" 'False) (C1 ('MetaCons "Currency" 'PrefixI 'True) ((S1 ('MetaSel ('Just "alpha") 'NoSourceUnpackedness 'SourceStrict 'DecidedStrict) (Rec0 Alpha) :*: S1 ('MetaSel ('Just "numeric") 'NoSourceUnpackedness 'SourceStrict 'DecidedStrict) (Rec0 Int)) :*: (S1 ('MetaSel ('Just "minor") 'NoSourceUnpackedness 'SourceStrict 'DecidedStrict) (Rec0 Int) :*: S1 ('MetaSel ('Just "name") 'NoSourceUnpackedness 'SourceStrict 'DecidedStrict) (Rec0 Text)))) |
A type which represents ISO 4217 alphabetic codes as an enum
AED | UAE Dirham |
AFN | Afghani |
ALL | Lek |
AMD | Armenian Dram |
ANG | Netherlands Antillean Guilder |
AOA | Kwanza |
ARS | Argentine Peso |
AUD | Australian Dollar |
AWG | Aruban Florin |
AZN | Azerbaijan Manat |
BAM | Convertible Mark |
BBD | Barbados Dollar |
BDT | Taka |
BGN | Bulgarian Lev |
BHD | Bahraini Dinar |
BIF | Burundi Franc |
BMD | Bermudian Dollar |
BND | Brunei Dollar |
BOB | Boliviano |
BOV | Mvdol |
BRL | Brazilian Real |
BSD | Bahamian Dollar |
BTN | Ngultrum |
BWP | Pula |
BYN | Belarusian Ruble |
BZD | Belize Dollar |
CAD | Canadian Dollar |
CDF | Congolese Franc |
CHE | WIR Euro |
CHF | Swiss Franc |
CHW | WIR Franc |
CLF | Unidad de Fomento |
CLP | Chilean Peso |
CNY | Yuan Renminbi |
COP | Colombian Peso |
COU | Unidad de Valor Real |
CRC | Costa Rican Colon |
CUC | Peso Convertible |
CUP | Cuban Peso |
CVE | Cabo Verde Escudo |
CZK | Czech Koruna |
DJF | Djibouti Franc |
DKK | Danish Krone |
DOP | Dominican Peso |
DZD | Algerian Dinar |
EGP | Egyptian Pound |
ERN | Nakfa |
ETB | Ethiopian Birr |
EUR | Euro |
FJD | Fiji Dollar |
FKP | Falkland Islands Pound |
GBP | Pound Sterling |
GEL | Lari |
GHS | Ghana Cedi |
GIP | Gibraltar Pound |
GMD | Dalasi |
GNF | Guinean Franc |
GTQ | Quetzal |
GYD | Guyana Dollar |
HKD | Hong Kong Dollar |
HNL | Lempira |
HRK | Kuna |
HTG | Gourde |
HUF | Forint |
IDR | Rupiah |
ILS | New Israeli Sheqel |
INR | Indian Rupee |
IQD | Iraqi Dinar |
IRR | Iranian Rial |
ISK | Iceland Krona |
JMD | Jamaican Dollar |
JOD | Jordanian Dinar |
JPY | Yen |
KES | Kenyan Shilling |
KGS | Som |
KHR | Riel |
KMF | Comorian Franc |
KPW | North Korean Won |
KRW | Won |
KWD | Kuwaiti Dinar |
KYD | Cayman Islands Dollar |
KZT | Tenge |
LAK | Lao Kip |
LBP | Lebanese Pound |
LKR | Sri Lanka Rupee |
LRD | Liberian Dollar |
LSL | Loti |
LYD | Libyan Dinar |
MAD | Moroccan Dirham |
MDL | Moldovan Leu |
MGA | Malagasy Ariary |
MKD | Denar |
MMK | Kyat |
MNT | Tugrik |
MOP | Pataca |
MRO | Ouguiya |
MUR | Mauritius Rupee |
MVR | Rufiyaa |
MWK | Malawi Kwacha |
MXN | Mexican Peso |
MXV | Mexican Unidad de Inversion (UDI) |
MYR | Malaysian Ringgit |
MZN | Mozambique Metical |
NAD | Namibia Dollar |
NGN | Naira |
NIO | Cordoba Oro |
NOK | Norwegian Krone |
NPR | Nepalese Rupee |
NZD | New Zealand Dollar |
OMR | Rial Omani |
PAB | Balboa |
PEN | Sol |
PGK | Kina |
PHP | Philippine Peso |
PKR | Pakistan Rupee |
PLN | Zloty |
PYG | Guarani |
QAR | Qatari Rial |
RON | Romanian Leu |
RSD | Serbian Dinar |
RUB | Russian Ruble |
RWF | Rwanda Franc |
SAR | Saudi Riyal |
SBD | Solomon Islands Dollar |
SCR | Seychelles Rupee |
SDG | Sudanese Pound |
SEK | Swedish Krona |
SGD | Singapore Dollar |
SHP | Saint Helena Pound |
SLL | Leone |
SOS | Somali Shilling |
SRD | Surinam Dollar |
SSP | South Sudanese Pound |
STD | Dobra |
SVC | El Salvador Colon |
SYP | Syrian Pound |
SZL | Lilangeni |
THB | Baht |
TJS | Somoni |
TMT | Turkmenistan New Manat |
TND | Tunisian Dinar |
TOP | Pa’anga |
TRY | Turkish Lira |
TTD | Trinidad and Tobago Dollar |
TWD | New Taiwan Dollar |
TZS | Tanzanian Shilling |
UAH | Hryvnia |
UGX | Uganda Shilling |
USD | US Dollar |
USN | US Dollar (Next day) |
UYI | Uruguay Peso en Unidades Indexadas (URUIURUI) |
UYU | Peso Uruguayo |
UZS | Uzbekistan Sum |
VEF | Bolívar |
VND | Dong |
VUV | Vatu |
WST | Tala |
XAF | CFA Franc BEAC |
XAG | Silver |
XAU | Gold |
XBA | Bond Markets Unit European Composite Unit (EURCO) |
XBB | Bond Markets Unit European Monetary Unit (E.M.U.-6) |
XBC | Bond Markets Unit European Unit of Account 9 (E.U.A.-9) |
XBD | Bond Markets Unit European Unit of Account 17 (E.U.A.-17) |
XCD | East Caribbean Dollar |
XDR | SDR (Special Drawing Right) |
XOF | CFA Franc BCEAO |
XPD | Palladium |
XPF | CFP Franc |
XPT | Platinum |
XSU | Sucre |
XTS | Codes specifically reserved for testing purposes |
XUA | ADB Unit of Account |
XXX | The codes assigned for transactions where no currency is involved |
YER | Yemeni Rial |
ZAR | Rand |
ZMW | Zambian Kwacha |
ZWL | Zimbabwe Dollar |
Instances
currencies :: [Currency] Source #
List of all currencies in the standard