duckling-0.1.6.1: A Haskell library for parsing text into structured data.

Safe HaskellNone
LanguageHaskell2010

Duckling.AmountOfMoney.Types

Documentation

data Currency Source #

Constructors

Cent 
Dinar 
Dirham 
Dollar 
Pound 
Rial 
Riyal 
Unnamed 
AED 
AUD 
BGN 
BRL 
BYN 
CAD 
CNY 
EGP 
EUR 
GBP 
HRK 
IDR 
ILS 
INR 
IQD 
JMD 
JOD 
JPY 
KRW 
KWD 
LBP 
MAD 
MYR 
NOK 
NZD 
PTS 
QAR 
RON 
RUB 
SAR 
SEK 
SGD 
TTD 
USD 
VND 

Instances

Eq Currency Source # 
Ord Currency Source # 
Show Currency Source # 
Generic Currency Source # 

Associated Types

type Rep Currency :: * -> * #

Methods

from :: Currency -> Rep Currency x #

to :: Rep Currency x -> Currency #

ToJSON Currency Source # 
NFData Currency Source # 

Methods

rnf :: Currency -> () #

Hashable Currency Source # 

Methods

hashWithSalt :: Int -> Currency -> Int #

hash :: Currency -> Int #

type Rep Currency Source # 
type Rep Currency = D1 * (MetaData "Currency" "Duckling.AmountOfMoney.Types" "duckling-0.1.6.1-83m0Jl1y16C43giMGsHrS3" False) ((:+:) * ((:+:) * ((:+:) * ((:+:) * ((:+:) * (C1 * (MetaCons "Cent" PrefixI False) (U1 *)) (C1 * (MetaCons "Dinar" PrefixI False) (U1 *))) ((:+:) * (C1 * (MetaCons "Dirham" PrefixI False) (U1 *)) ((:+:) * (C1 * (MetaCons "Dollar" PrefixI False) (U1 *)) (C1 * (MetaCons "Pound" PrefixI False) (U1 *))))) ((:+:) * ((:+:) * (C1 * (MetaCons "Rial" PrefixI False) (U1 *)) (C1 * (MetaCons "Riyal" PrefixI False) (U1 *))) ((:+:) * (C1 * (MetaCons "Unnamed" PrefixI False) (U1 *)) ((:+:) * (C1 * (MetaCons "AED" PrefixI False) (U1 *)) (C1 * (MetaCons "AUD" PrefixI False) (U1 *)))))) ((:+:) * ((:+:) * ((:+:) * (C1 * (MetaCons "BGN" PrefixI False) (U1 *)) (C1 * (MetaCons "BRL" PrefixI False) (U1 *))) ((:+:) * (C1 * (MetaCons "BYN" PrefixI False) (U1 *)) ((:+:) * (C1 * (MetaCons "CAD" PrefixI False) (U1 *)) (C1 * (MetaCons "CNY" PrefixI False) (U1 *))))) ((:+:) * ((:+:) * (C1 * (MetaCons "EGP" PrefixI False) (U1 *)) ((:+:) * (C1 * (MetaCons "EUR" PrefixI False) (U1 *)) (C1 * (MetaCons "GBP" PrefixI False) (U1 *)))) ((:+:) * (C1 * (MetaCons "HRK" PrefixI False) (U1 *)) ((:+:) * (C1 * (MetaCons "IDR" PrefixI False) (U1 *)) (C1 * (MetaCons "ILS" PrefixI False) (U1 *))))))) ((:+:) * ((:+:) * ((:+:) * ((:+:) * (C1 * (MetaCons "INR" PrefixI False) (U1 *)) (C1 * (MetaCons "IQD" PrefixI False) (U1 *))) ((:+:) * (C1 * (MetaCons "JMD" PrefixI False) (U1 *)) ((:+:) * (C1 * (MetaCons "JOD" PrefixI False) (U1 *)) (C1 * (MetaCons "JPY" PrefixI False) (U1 *))))) ((:+:) * ((:+:) * (C1 * (MetaCons "KRW" PrefixI False) (U1 *)) ((:+:) * (C1 * (MetaCons "KWD" PrefixI False) (U1 *)) (C1 * (MetaCons "LBP" PrefixI False) (U1 *)))) ((:+:) * (C1 * (MetaCons "MAD" PrefixI False) (U1 *)) ((:+:) * (C1 * (MetaCons "MYR" PrefixI False) (U1 *)) (C1 * (MetaCons "NOK" PrefixI False) (U1 *)))))) ((:+:) * ((:+:) * ((:+:) * (C1 * (MetaCons "NZD" PrefixI False) (U1 *)) (C1 * (MetaCons "PTS" PrefixI False) (U1 *))) ((:+:) * (C1 * (MetaCons "QAR" PrefixI False) (U1 *)) ((:+:) * (C1 * (MetaCons "RON" PrefixI False) (U1 *)) (C1 * (MetaCons "RUB" PrefixI False) (U1 *))))) ((:+:) * ((:+:) * (C1 * (MetaCons "SAR" PrefixI False) (U1 *)) ((:+:) * (C1 * (MetaCons "SEK" PrefixI False) (U1 *)) (C1 * (MetaCons "SGD" PrefixI False) (U1 *)))) ((:+:) * (C1 * (MetaCons "TTD" PrefixI False) (U1 *)) ((:+:) * (C1 * (MetaCons "USD" PrefixI False) (U1 *)) (C1 * (MetaCons "VND" PrefixI False) (U1 *))))))))

data AmountOfMoneyData Source #

Instances

Eq AmountOfMoneyData Source # 
Ord AmountOfMoneyData Source # 
Show AmountOfMoneyData Source # 
Generic AmountOfMoneyData Source # 
NFData AmountOfMoneyData Source # 

Methods

rnf :: AmountOfMoneyData -> () #

Hashable AmountOfMoneyData Source # 
Resolve AmountOfMoneyData Source # 
type Rep AmountOfMoneyData Source # 
type ResolvedValue AmountOfMoneyData Source # 

data IntervalDirection Source #

Constructors

Above 
Under