currency-0.2.0.0: Types representing standard and non-standard currencies

Safe HaskellSafe
LanguageHaskell98

Currency

Description

A representation of both ISO4217 and nonstandard currencies

Synopsis

Documentation

data Currency #

Either an ISO4217Currency or a nonstandard currency

Instances
Enum Currency # 
Instance details

Defined in Currency

Eq Currency # 
Instance details

Defined in Currency

Ord Currency # 
Instance details

Defined in Currency

Read Currency # 
Instance details

Defined in Currency

Show Currency # 
Instance details

Defined in Currency

IsString Currency # 
Instance details

Defined in Currency

Hashable Currency # 
Instance details

Defined in Currency

Methods

hashWithSalt :: Int -> Currency -> Int #

hash :: Currency -> Int #

data ISO4217Currency #

ISO4217 currency, either national or non-national

Instances
Enum ISO4217Currency # 
Instance details

Defined in Currency

Eq ISO4217Currency # 
Instance details

Defined in Currency

Ord ISO4217Currency # 
Instance details

Defined in Currency

Read ISO4217Currency # 
Instance details

Defined in Currency

Show ISO4217Currency # 
Instance details

Defined in Currency

Hashable ISO4217Currency # 
Instance details

Defined in Currency

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

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