Safe Haskell | Safe-Inferred |
---|---|
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
IsString Currency Source # | |
Defined in Currency Methods fromString :: String -> Currency # | |
Enum Currency Source # | |
Read Currency Source # | |
Show Currency Source # | |
Eq Currency Source # | |
Ord Currency Source # | |
Defined in Currency | |
Hashable Currency Source # | |
data ISO4217Currency Source #
ISO4217 currency, either national or non-national
Constructors
NationalCurrency CountryCode Char | |
NonNationalCurrency Char Char |
Instances
minorUnits :: MinorUnits a => a -> Maybe Int Source #
The number of fractional decimal places in an amount of a
Currency
or ISO4217Currency