| Safe Haskell | Safe |
|---|---|
| Language | Haskell98 |
Currency
Description
A representation of both ISO4217 and nonstandard currencies
Synopsis
- data Currency
- data ISO4217Currency
- minorUnits :: MinorUnits a => a -> Maybe Int
Documentation
Either an ISO4217Currency or a nonstandard currency
Constructors
| ISO4217Currency ISO4217Currency | |
| NonStandardCurrency String |
Instances
| Enum Currency # | |
| Eq Currency # | |
| Ord Currency # | |
Defined in Currency | |
| Read Currency # | |
| Show Currency # | |
| IsString Currency # | |
Defined in Currency Methods fromString :: String -> Currency # | |
| Hashable Currency # | |
data ISO4217Currency #
ISO4217 currency, either national or non-national
Constructors
| NationalCurrency CountryCode Char | |
| NonNationalCurrency Char Char |
Instances
minorUnits :: MinorUnits a => a -> Maybe Int #
The number of fractional decimal places in an amount of a
Currency or ISO4217Currency