currency-codes-2.0.0.0: ISO-4217 Currency Codes

Safe HaskellNone
LanguageHaskell2010

Data.Currency

Description

A Currency representation as specified in the ISO-4217 standard

Synopsis

Documentation

data Currency Source #

Actual representation of a currency

Constructors

Currency 

Fields

Instances

Eq Currency Source # 
Data Currency Source # 

Methods

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 :: (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 #

Read Currency Source # 
Show Currency Source # 
Generic Currency Source # 

Associated Types

type Rep Currency :: * -> * #

Methods

from :: Currency -> Rep Currency x #

to :: Rep Currency x -> Currency #

ToJSON Currency Source # 
FromJSON Currency Source # 
Val Currency Source # 
Random Currency Source # 
type Rep Currency Source # 

data Alpha Source #

A type which represents ISO 4217 alphabetic codes as an enum

Constructors

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

Bounded Alpha Source # 
Enum Alpha Source # 
Eq Alpha Source # 

Methods

(==) :: Alpha -> Alpha -> Bool #

(/=) :: Alpha -> Alpha -> Bool #

Data Alpha Source # 

Methods

gfoldl :: (forall d b. Data d => c (d -> b) -> d -> c b) -> (forall g. g -> c g) -> Alpha -> c Alpha #

gunfold :: (forall b r. Data b => c (b -> r) -> c r) -> (forall r. r -> c r) -> Constr -> c Alpha #

toConstr :: Alpha -> Constr #

dataTypeOf :: Alpha -> DataType #

dataCast1 :: Typeable (* -> *) t => (forall d. Data d => c (t d)) -> Maybe (c Alpha) #

dataCast2 :: Typeable (* -> * -> *) t => (forall d e. (Data d, Data e) => c (t d e)) -> Maybe (c Alpha) #

gmapT :: (forall b. Data b => b -> b) -> Alpha -> Alpha #

gmapQl :: (r -> r' -> r) -> r -> (forall d. Data d => d -> r') -> Alpha -> r #

gmapQr :: (r' -> r -> r) -> r -> (forall d. Data d => d -> r') -> Alpha -> r #

gmapQ :: (forall d. Data d => d -> u) -> Alpha -> [u] #

gmapQi :: Int -> (forall d. Data d => d -> u) -> Alpha -> u #

gmapM :: Monad m => (forall d. Data d => d -> m d) -> Alpha -> m Alpha #

gmapMp :: MonadPlus m => (forall d. Data d => d -> m d) -> Alpha -> m Alpha #

gmapMo :: MonadPlus m => (forall d. Data d => d -> m d) -> Alpha -> m Alpha #

Ord Alpha Source # 

Methods

compare :: Alpha -> Alpha -> Ordering #

(<) :: Alpha -> Alpha -> Bool #

(<=) :: Alpha -> Alpha -> Bool #

(>) :: Alpha -> Alpha -> Bool #

(>=) :: Alpha -> Alpha -> Bool #

max :: Alpha -> Alpha -> Alpha #

min :: Alpha -> Alpha -> Alpha #

Read Alpha Source # 
Show Alpha Source # 

Methods

showsPrec :: Int -> Alpha -> ShowS #

show :: Alpha -> String #

showList :: [Alpha] -> ShowS #

Generic Alpha Source # 

Associated Types

type Rep Alpha :: * -> * #

Methods

from :: Alpha -> Rep Alpha x #

to :: Rep Alpha x -> Alpha #

ToJSON Alpha Source # 
FromJSON Alpha Source # 
Val Alpha Source # 
Random Alpha Source # 

Methods

randomR :: RandomGen g => (Alpha, Alpha) -> g -> (Alpha, g) #

random :: RandomGen g => g -> (Alpha, g) #

randomRs :: RandomGen g => (Alpha, Alpha) -> g -> [Alpha] #

randoms :: RandomGen g => g -> [Alpha] #

randomRIO :: (Alpha, Alpha) -> IO Alpha #

randomIO :: IO Alpha #

type Rep Alpha Source # 
type Rep Alpha = D1 (MetaData "Alpha" "Data.Currency" "currency-codes-2.0.0.0-D7lWChWdhHK53MPaKYM6jL" False) ((:+:) ((:+:) ((:+:) ((:+:) ((:+:) ((:+:) ((:+:) (C1 (MetaCons "AED" PrefixI False) U1) (C1 (MetaCons "AFN" PrefixI False) U1)) ((:+:) (C1 (MetaCons "ALL" PrefixI False) U1) ((:+:) (C1 (MetaCons "AMD" PrefixI False) U1) (C1 (MetaCons "ANG" PrefixI False) U1)))) ((:+:) ((:+:) (C1 (MetaCons "AOA" PrefixI False) U1) ((:+:) (C1 (MetaCons "ARS" PrefixI False) U1) (C1 (MetaCons "AUD" PrefixI False) U1))) ((:+:) (C1 (MetaCons "AWG" PrefixI False) U1) ((:+:) (C1 (MetaCons "AZN" PrefixI False) U1) (C1 (MetaCons "BAM" PrefixI False) U1))))) ((:+:) ((:+:) ((:+:) (C1 (MetaCons "BBD" PrefixI False) U1) (C1 (MetaCons "BDT" PrefixI False) U1)) ((:+:) (C1 (MetaCons "BGN" PrefixI False) U1) ((:+:) (C1 (MetaCons "BHD" PrefixI False) U1) (C1 (MetaCons "BIF" PrefixI False) U1)))) ((:+:) ((:+:) (C1 (MetaCons "BMD" PrefixI False) U1) ((:+:) (C1 (MetaCons "BND" PrefixI False) U1) (C1 (MetaCons "BOB" PrefixI False) U1))) ((:+:) (C1 (MetaCons "BOV" PrefixI False) U1) ((:+:) (C1 (MetaCons "BRL" PrefixI False) U1) (C1 (MetaCons "BSD" PrefixI False) U1)))))) ((:+:) ((:+:) ((:+:) ((:+:) (C1 (MetaCons "BTN" PrefixI False) U1) (C1 (MetaCons "BWP" PrefixI False) U1)) ((:+:) (C1 (MetaCons "BYN" PrefixI False) U1) ((:+:) (C1 (MetaCons "BZD" PrefixI False) U1) (C1 (MetaCons "CAD" PrefixI False) U1)))) ((:+:) ((:+:) (C1 (MetaCons "CDF" PrefixI False) U1) ((:+:) (C1 (MetaCons "CHE" PrefixI False) U1) (C1 (MetaCons "CHF" PrefixI False) U1))) ((:+:) (C1 (MetaCons "CHW" PrefixI False) U1) ((:+:) (C1 (MetaCons "CLF" PrefixI False) U1) (C1 (MetaCons "CLP" PrefixI False) U1))))) ((:+:) ((:+:) ((:+:) (C1 (MetaCons "CNY" PrefixI False) U1) (C1 (MetaCons "COP" PrefixI False) U1)) ((:+:) (C1 (MetaCons "COU" PrefixI False) U1) ((:+:) (C1 (MetaCons "CRC" PrefixI False) U1) (C1 (MetaCons "CUC" PrefixI False) U1)))) ((:+:) ((:+:) (C1 (MetaCons "CUP" PrefixI False) U1) ((:+:) (C1 (MetaCons "CVE" PrefixI False) U1) (C1 (MetaCons "CZK" PrefixI False) U1))) ((:+:) (C1 (MetaCons "DJF" PrefixI False) U1) ((:+:) (C1 (MetaCons "DKK" PrefixI False) U1) (C1 (MetaCons "DOP" PrefixI False) U1))))))) ((:+:) ((:+:) ((:+:) ((:+:) ((:+:) (C1 (MetaCons "DZD" PrefixI False) U1) (C1 (MetaCons "EGP" PrefixI False) U1)) ((:+:) (C1 (MetaCons "ERN" PrefixI False) U1) ((:+:) (C1 (MetaCons "ETB" PrefixI False) U1) (C1 (MetaCons "EUR" PrefixI False) U1)))) ((:+:) ((:+:) (C1 (MetaCons "FJD" PrefixI False) U1) ((:+:) (C1 (MetaCons "FKP" PrefixI False) U1) (C1 (MetaCons "GBP" PrefixI False) U1))) ((:+:) (C1 (MetaCons "GEL" PrefixI False) U1) ((:+:) (C1 (MetaCons "GHS" PrefixI False) U1) (C1 (MetaCons "GIP" PrefixI False) U1))))) ((:+:) ((:+:) ((:+:) (C1 (MetaCons "GMD" PrefixI False) U1) (C1 (MetaCons "GNF" PrefixI False) U1)) ((:+:) (C1 (MetaCons "GTQ" PrefixI False) U1) ((:+:) (C1 (MetaCons "GYD" PrefixI False) U1) (C1 (MetaCons "HKD" PrefixI False) U1)))) ((:+:) ((:+:) (C1 (MetaCons "HNL" PrefixI False) U1) ((:+:) (C1 (MetaCons "HRK" PrefixI False) U1) (C1 (MetaCons "HTG" PrefixI False) U1))) ((:+:) (C1 (MetaCons "HUF" PrefixI False) U1) ((:+:) (C1 (MetaCons "IDR" PrefixI False) U1) (C1 (MetaCons "ILS" PrefixI False) U1)))))) ((:+:) ((:+:) ((:+:) ((:+:) (C1 (MetaCons "INR" PrefixI False) U1) (C1 (MetaCons "IQD" PrefixI False) U1)) ((:+:) (C1 (MetaCons "IRR" PrefixI False) U1) ((:+:) (C1 (MetaCons "ISK" PrefixI False) U1) (C1 (MetaCons "JMD" PrefixI False) U1)))) ((:+:) ((:+:) (C1 (MetaCons "JOD" PrefixI False) U1) ((:+:) (C1 (MetaCons "JPY" PrefixI False) U1) (C1 (MetaCons "KES" PrefixI False) U1))) ((:+:) (C1 (MetaCons "KGS" PrefixI False) U1) ((:+:) (C1 (MetaCons "KHR" PrefixI False) U1) (C1 (MetaCons "KMF" PrefixI False) U1))))) ((:+:) ((:+:) ((:+:) (C1 (MetaCons "KPW" PrefixI False) U1) ((:+:) (C1 (MetaCons "KRW" PrefixI False) U1) (C1 (MetaCons "KWD" PrefixI False) U1))) ((:+:) (C1 (MetaCons "KYD" PrefixI False) U1) ((:+:) (C1 (MetaCons "KZT" PrefixI False) U1) (C1 (MetaCons "LAK" PrefixI False) U1)))) ((:+:) ((:+:) (C1 (MetaCons "LBP" PrefixI False) U1) ((:+:) (C1 (MetaCons "LKR" PrefixI False) U1) (C1 (MetaCons "LRD" PrefixI False) U1))) ((:+:) (C1 (MetaCons "LSL" PrefixI False) U1) ((:+:) (C1 (MetaCons "LYD" PrefixI False) U1) (C1 (MetaCons "MAD" PrefixI False) U1)))))))) ((:+:) ((:+:) ((:+:) ((:+:) ((:+:) ((:+:) (C1 (MetaCons "MDL" PrefixI False) U1) (C1 (MetaCons "MGA" PrefixI False) U1)) ((:+:) (C1 (MetaCons "MKD" PrefixI False) U1) ((:+:) (C1 (MetaCons "MMK" PrefixI False) U1) (C1 (MetaCons "MNT" PrefixI False) U1)))) ((:+:) ((:+:) (C1 (MetaCons "MOP" PrefixI False) U1) ((:+:) (C1 (MetaCons "MRO" PrefixI False) U1) (C1 (MetaCons "MUR" PrefixI False) U1))) ((:+:) (C1 (MetaCons "MVR" PrefixI False) U1) ((:+:) (C1 (MetaCons "MWK" PrefixI False) U1) (C1 (MetaCons "MXN" PrefixI False) U1))))) ((:+:) ((:+:) ((:+:) (C1 (MetaCons "MXV" PrefixI False) U1) (C1 (MetaCons "MYR" PrefixI False) U1)) ((:+:) (C1 (MetaCons "MZN" PrefixI False) U1) ((:+:) (C1 (MetaCons "NAD" PrefixI False) U1) (C1 (MetaCons "NGN" PrefixI False) U1)))) ((:+:) ((:+:) (C1 (MetaCons "NIO" PrefixI False) U1) ((:+:) (C1 (MetaCons "NOK" PrefixI False) U1) (C1 (MetaCons "NPR" PrefixI False) U1))) ((:+:) (C1 (MetaCons "NZD" PrefixI False) U1) ((:+:) (C1 (MetaCons "OMR" PrefixI False) U1) (C1 (MetaCons "PAB" PrefixI False) U1)))))) ((:+:) ((:+:) ((:+:) ((:+:) (C1 (MetaCons "PEN" PrefixI False) U1) (C1 (MetaCons "PGK" PrefixI False) U1)) ((:+:) (C1 (MetaCons "PHP" PrefixI False) U1) ((:+:) (C1 (MetaCons "PKR" PrefixI False) U1) (C1 (MetaCons "PLN" PrefixI False) U1)))) ((:+:) ((:+:) (C1 (MetaCons "PYG" PrefixI False) U1) ((:+:) (C1 (MetaCons "QAR" PrefixI False) U1) (C1 (MetaCons "RON" PrefixI False) U1))) ((:+:) (C1 (MetaCons "RSD" PrefixI False) U1) ((:+:) (C1 (MetaCons "RUB" PrefixI False) U1) (C1 (MetaCons "RWF" PrefixI False) U1))))) ((:+:) ((:+:) ((:+:) (C1 (MetaCons "SAR" PrefixI False) U1) (C1 (MetaCons "SBD" PrefixI False) U1)) ((:+:) (C1 (MetaCons "SCR" PrefixI False) U1) ((:+:) (C1 (MetaCons "SDG" PrefixI False) U1) (C1 (MetaCons "SEK" PrefixI False) U1)))) ((:+:) ((:+:) (C1 (MetaCons "SGD" PrefixI False) U1) ((:+:) (C1 (MetaCons "SHP" PrefixI False) U1) (C1 (MetaCons "SLL" PrefixI False) U1))) ((:+:) (C1 (MetaCons "SOS" PrefixI False) U1) ((:+:) (C1 (MetaCons "SRD" PrefixI False) U1) (C1 (MetaCons "SSP" PrefixI False) U1))))))) ((:+:) ((:+:) ((:+:) ((:+:) ((:+:) (C1 (MetaCons "STD" PrefixI False) U1) (C1 (MetaCons "SVC" PrefixI False) U1)) ((:+:) (C1 (MetaCons "SYP" PrefixI False) U1) ((:+:) (C1 (MetaCons "SZL" PrefixI False) U1) (C1 (MetaCons "THB" PrefixI False) U1)))) ((:+:) ((:+:) (C1 (MetaCons "TJS" PrefixI False) U1) ((:+:) (C1 (MetaCons "TMT" PrefixI False) U1) (C1 (MetaCons "TND" PrefixI False) U1))) ((:+:) (C1 (MetaCons "TOP" PrefixI False) U1) ((:+:) (C1 (MetaCons "TRY" PrefixI False) U1) (C1 (MetaCons "TTD" PrefixI False) U1))))) ((:+:) ((:+:) ((:+:) (C1 (MetaCons "TWD" PrefixI False) U1) (C1 (MetaCons "TZS" PrefixI False) U1)) ((:+:) (C1 (MetaCons "UAH" PrefixI False) U1) ((:+:) (C1 (MetaCons "UGX" PrefixI False) U1) (C1 (MetaCons "USD" PrefixI False) U1)))) ((:+:) ((:+:) (C1 (MetaCons "USN" PrefixI False) U1) ((:+:) (C1 (MetaCons "UYI" PrefixI False) U1) (C1 (MetaCons "UYU" PrefixI False) U1))) ((:+:) (C1 (MetaCons "UZS" PrefixI False) U1) ((:+:) (C1 (MetaCons "VEF" PrefixI False) U1) (C1 (MetaCons "VND" PrefixI False) U1)))))) ((:+:) ((:+:) ((:+:) ((:+:) (C1 (MetaCons "VUV" PrefixI False) U1) (C1 (MetaCons "WST" PrefixI False) U1)) ((:+:) (C1 (MetaCons "XAF" PrefixI False) U1) ((:+:) (C1 (MetaCons "XAG" PrefixI False) U1) (C1 (MetaCons "XAU" PrefixI False) U1)))) ((:+:) ((:+:) (C1 (MetaCons "XBA" PrefixI False) U1) ((:+:) (C1 (MetaCons "XBB" PrefixI False) U1) (C1 (MetaCons "XBC" PrefixI False) U1))) ((:+:) (C1 (MetaCons "XBD" PrefixI False) U1) ((:+:) (C1 (MetaCons "XCD" PrefixI False) U1) (C1 (MetaCons "XDR" PrefixI False) U1))))) ((:+:) ((:+:) ((:+:) (C1 (MetaCons "XOF" PrefixI False) U1) ((:+:) (C1 (MetaCons "XPD" PrefixI False) U1) (C1 (MetaCons "XPF" PrefixI False) U1))) ((:+:) (C1 (MetaCons "XPT" PrefixI False) U1) ((:+:) (C1 (MetaCons "XSU" PrefixI False) U1) (C1 (MetaCons "XTS" PrefixI False) U1)))) ((:+:) ((:+:) (C1 (MetaCons "XUA" PrefixI False) U1) ((:+:) (C1 (MetaCons "XXX" PrefixI False) U1) (C1 (MetaCons "YER" PrefixI False) U1))) ((:+:) (C1 (MetaCons "ZAR" PrefixI False) U1) ((:+:) (C1 (MetaCons "ZMW" PrefixI False) U1) (C1 (MetaCons "ZWL" PrefixI False) U1)))))))))

currencies :: [Currency] Source #

List of all currencies in the standard