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

Safe HaskellNone
LanguageHaskell2010

Duckling.AmountOfMoney.Types

Documentation

data Currency Source #

Constructors

Cent 
Dollar 
Pound 
Unnamed 
AED 
AUD 
BRL 
EGP 
EUR 
GBP 
HRK 
IDR 
INR 
JPY 
KRW 
KWD 
LBP 
MYR 
NOK 
PTS 
QAR 
RON 
SAR 
SEK 
SGD 
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 #

Hashable Currency Source # 

Methods

hashWithSalt :: Int -> Currency -> Int #

hash :: Currency -> Int #

ToJSON Currency Source # 
NFData Currency Source # 

Methods

rnf :: Currency -> () #

type Rep Currency Source # 
type Rep Currency = D1 (MetaData "Currency" "Duckling.AmountOfMoney.Types" "duckling-0.1.2.0-4kNLeMarmI05ZcZPmDT5Pl" False) ((:+:) ((:+:) ((:+:) ((:+:) (C1 (MetaCons "Cent" PrefixI False) U1) ((:+:) (C1 (MetaCons "Dollar" PrefixI False) U1) (C1 (MetaCons "Pound" PrefixI False) U1))) ((:+:) (C1 (MetaCons "Unnamed" PrefixI False) U1) ((:+:) (C1 (MetaCons "AED" PrefixI False) U1) (C1 (MetaCons "AUD" PrefixI False) U1)))) ((:+:) ((:+:) (C1 (MetaCons "BRL" 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 "INR" 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 "MYR" PrefixI False) U1)) ((:+:) (C1 (MetaCons "NOK" PrefixI False) U1) (C1 (MetaCons "PTS" PrefixI False) U1)))) ((:+:) ((:+:) (C1 (MetaCons "QAR" PrefixI False) U1) ((:+:) (C1 (MetaCons "RON" PrefixI False) U1) (C1 (MetaCons "SAR" PrefixI False) U1))) ((:+:) ((:+:) (C1 (MetaCons "SEK" PrefixI False) U1) (C1 (MetaCons "SGD" 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 # 
Hashable AmountOfMoneyData Source # 
NFData AmountOfMoneyData Source # 

Methods

rnf :: AmountOfMoneyData -> () #

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

data IntervalDirection Source #

Constructors

Above 
Under