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 Source #

Methods

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

Instances

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

data CurrencyType Source #

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