duckling-0.1.0.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 
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.0.0-BatkR4NBWIJH5VaUlTaDP" 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 "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 #

Constructors

AmountOfMoneyData 

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 Rep AmountOfMoneyData = D1 (MetaData "AmountOfMoneyData" "Duckling.AmountOfMoney.Types" "duckling-0.1.0.0-BatkR4NBWIJH5VaUlTaDP" False) (C1 (MetaCons "AmountOfMoneyData" PrefixI True) ((:*:) (S1 (MetaSel (Just Symbol "value") NoSourceUnpackedness NoSourceStrictness DecidedLazy) (Rec0 (Maybe Double))) (S1 (MetaSel (Just Symbol "currency") NoSourceUnpackedness NoSourceStrictness DecidedLazy) (Rec0 Currency))))
type ResolvedValue AmountOfMoneyData Source #