currency-0.2.0.0: Types representing standard and non-standard currencies
Safe HaskellSafe-Inferred
LanguageHaskell98

Currency

Description

A representation of both ISO4217 and nonstandard currencies

Synopsis

Documentation

data Currency Source #

Either an ISO4217Currency or a nonstandard currency

Instances

Instances details
IsString Currency Source # 
Instance details

Defined in Currency

Enum Currency Source # 
Instance details

Defined in Currency

Read Currency Source # 
Instance details

Defined in Currency

Show Currency Source # 
Instance details

Defined in Currency

Eq Currency Source # 
Instance details

Defined in Currency

Ord Currency Source # 
Instance details

Defined in Currency

Hashable Currency Source # 
Instance details

Defined in Currency

Methods

hashWithSalt :: Int -> Currency -> Int #

hash :: Currency -> Int #

data ISO4217Currency Source #

ISO4217 currency, either national or non-national

Instances

Instances details
Enum ISO4217Currency Source # 
Instance details

Defined in Currency

Read ISO4217Currency Source # 
Instance details

Defined in Currency

Show ISO4217Currency Source # 
Instance details

Defined in Currency

Eq ISO4217Currency Source # 
Instance details

Defined in Currency

Ord ISO4217Currency Source # 
Instance details

Defined in Currency

Hashable ISO4217Currency Source # 
Instance details

Defined in Currency

minorUnits :: MinorUnits a => a -> Maybe Int Source #

The number of fractional decimal places in an amount of a Currency or ISO4217Currency