currencies-0.1.1.1: Currencies representation, pretty printing and conversion

Safe HaskellSafe
LanguageHaskell2010

Data.Currency.Currencies

Contents

Description

ISO 4217 compliant and other currencies

Synopsis

Currency Class

class (Show c, Eq c) => Currency c where #

Methods

currencyType :: c -> CurrencyType #

isoCode :: c -> String #

ISO 4217 Currency Code

isoNumericCode :: c -> String #

ISO 4217 Currency Numeric Code

decimalDigits :: c -> Int #

Number of digits after the decimal separator

symbol :: c -> String #

Currency UTF-8 symbol

exchangeUSD :: c -> Double #

Exchange rate with US Dollar (USD)

countries :: c -> [String] #

ISO 3166-1 alpha-2 Country codes where the currency is used

Instances

Currency USD # 
Currency SIM # 
Currency PYG # 
Currency PEN # 
Currency PAB # 
Currency MXN # 
Currency KRW # 
Currency KPW # 
Currency JPY # 
Currency EUR # 
Currency CLP # 
Currency CAD # 
Currency BTC # 
Currency BRL # 

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

Currencies

data BRL #

Brazilian Real

Constructors

BRL 

data BTC #

Bitcoin

Constructors

BTC 

data CAD #

Canadian Dollar

Constructors

CAD 

data CLP #

Chilean Peso

Constructors

CLP 

data EUR #

European Union Euro

Constructors

EUR 

data JPY #

Japanse Yen

Constructors

JPY 

data KPW #

North Korean Won

Constructors

KPW 

data KRW #

North Korean Won

Constructors

KRW 

data MXN #

Mexican Peso

Constructors

MXN 

data PAB #

Panamanian Balboa

Constructors

PAB 

data PEN #

Peruvian Sol

Constructors

PEN 

data PYG #

Paraguayan guaraní

Constructors

PYG 

data SIM #

SIM's Simoleon

Constructors

SIM 

data USD #

US Dollar

Constructors

USD