duckling-0.2.0.0: 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 
CHF 
CNY 
CZK 
DKK 
EGP 
EUR 
GBP 
HKD 
HRK 
IDR 
ILS 
INR 
IQD 
JMD 
JOD 
JPY 
GEL 
KRW 
KWD 
LBP 
MAD 
MNT 
MYR 
NOK 
NZD 
PKR 
PLN 
PTS 
QAR 
RON 
RUB 
SAR 
SEK 
SGD 
THB 
TTD 
USD 
VND 
ZAR 
UAH 
TRY 

Instances

Instances details
Eq Currency Source # 
Instance details

Defined in Duckling.AmountOfMoney.Types

Ord Currency Source # 
Instance details

Defined in Duckling.AmountOfMoney.Types

Show Currency Source # 
Instance details

Defined in Duckling.AmountOfMoney.Types

Generic Currency Source # 
Instance details

Defined in Duckling.AmountOfMoney.Types

Associated Types

type Rep Currency :: Type -> Type #

Methods

from :: Currency -> Rep Currency x #

to :: Rep Currency x -> Currency #

Hashable Currency Source # 
Instance details

Defined in Duckling.AmountOfMoney.Types

Methods

hashWithSalt :: Int -> Currency -> Int #

hash :: Currency -> Int #

ToJSON Currency Source # 
Instance details

Defined in Duckling.AmountOfMoney.Types

NFData Currency Source # 
Instance details

Defined in Duckling.AmountOfMoney.Types

Methods

rnf :: Currency -> () #

type Rep Currency Source # 
Instance details

Defined in Duckling.AmountOfMoney.Types

type Rep Currency = D1 ('MetaData "Currency" "Duckling.AmountOfMoney.Types" "duckling-0.2.0.0-4AU1pRwMU7E8YjNdB7ILfy" 'False) (((((C1 ('MetaCons "Cent" 'PrefixI 'False) (U1 :: Type -> Type) :+: (C1 ('MetaCons "Dinar" 'PrefixI 'False) (U1 :: Type -> Type) :+: C1 ('MetaCons "Dirham" 'PrefixI 'False) (U1 :: Type -> Type))) :+: (C1 ('MetaCons "Dollar" 'PrefixI 'False) (U1 :: Type -> Type) :+: (C1 ('MetaCons "Pound" 'PrefixI 'False) (U1 :: Type -> Type) :+: C1 ('MetaCons "Rial" 'PrefixI 'False) (U1 :: Type -> Type)))) :+: ((C1 ('MetaCons "Riyal" 'PrefixI 'False) (U1 :: Type -> Type) :+: (C1 ('MetaCons "Unnamed" 'PrefixI 'False) (U1 :: Type -> Type) :+: C1 ('MetaCons "AED" 'PrefixI 'False) (U1 :: Type -> Type))) :+: ((C1 ('MetaCons "AUD" 'PrefixI 'False) (U1 :: Type -> Type) :+: C1 ('MetaCons "BGN" 'PrefixI 'False) (U1 :: Type -> Type)) :+: (C1 ('MetaCons "BRL" 'PrefixI 'False) (U1 :: Type -> Type) :+: C1 ('MetaCons "BYN" 'PrefixI 'False) (U1 :: Type -> Type))))) :+: (((C1 ('MetaCons "CAD" 'PrefixI 'False) (U1 :: Type -> Type) :+: (C1 ('MetaCons "CHF" 'PrefixI 'False) (U1 :: Type -> Type) :+: C1 ('MetaCons "CNY" 'PrefixI 'False) (U1 :: Type -> Type))) :+: ((C1 ('MetaCons "CZK" 'PrefixI 'False) (U1 :: Type -> Type) :+: C1 ('MetaCons "DKK" 'PrefixI 'False) (U1 :: Type -> Type)) :+: (C1 ('MetaCons "EGP" 'PrefixI 'False) (U1 :: Type -> Type) :+: C1 ('MetaCons "EUR" 'PrefixI 'False) (U1 :: Type -> Type)))) :+: ((C1 ('MetaCons "GBP" 'PrefixI 'False) (U1 :: Type -> Type) :+: (C1 ('MetaCons "HKD" 'PrefixI 'False) (U1 :: Type -> Type) :+: C1 ('MetaCons "HRK" 'PrefixI 'False) (U1 :: Type -> Type))) :+: ((C1 ('MetaCons "IDR" 'PrefixI 'False) (U1 :: Type -> Type) :+: C1 ('MetaCons "ILS" 'PrefixI 'False) (U1 :: Type -> Type)) :+: (C1 ('MetaCons "INR" 'PrefixI 'False) (U1 :: Type -> Type) :+: C1 ('MetaCons "IQD" 'PrefixI 'False) (U1 :: Type -> Type)))))) :+: ((((C1 ('MetaCons "JMD" 'PrefixI 'False) (U1 :: Type -> Type) :+: (C1 ('MetaCons "JOD" 'PrefixI 'False) (U1 :: Type -> Type) :+: C1 ('MetaCons "JPY" 'PrefixI 'False) (U1 :: Type -> Type))) :+: ((C1 ('MetaCons "GEL" 'PrefixI 'False) (U1 :: Type -> Type) :+: C1 ('MetaCons "KRW" 'PrefixI 'False) (U1 :: Type -> Type)) :+: (C1 ('MetaCons "KWD" 'PrefixI 'False) (U1 :: Type -> Type) :+: C1 ('MetaCons "LBP" 'PrefixI 'False) (U1 :: Type -> Type)))) :+: ((C1 ('MetaCons "MAD" 'PrefixI 'False) (U1 :: Type -> Type) :+: (C1 ('MetaCons "MNT" 'PrefixI 'False) (U1 :: Type -> Type) :+: C1 ('MetaCons "MYR" 'PrefixI 'False) (U1 :: Type -> Type))) :+: ((C1 ('MetaCons "NOK" 'PrefixI 'False) (U1 :: Type -> Type) :+: C1 ('MetaCons "NZD" 'PrefixI 'False) (U1 :: Type -> Type)) :+: (C1 ('MetaCons "PKR" 'PrefixI 'False) (U1 :: Type -> Type) :+: C1 ('MetaCons "PLN" 'PrefixI 'False) (U1 :: Type -> Type))))) :+: (((C1 ('MetaCons "PTS" 'PrefixI 'False) (U1 :: Type -> Type) :+: (C1 ('MetaCons "QAR" 'PrefixI 'False) (U1 :: Type -> Type) :+: C1 ('MetaCons "RON" 'PrefixI 'False) (U1 :: Type -> Type))) :+: ((C1 ('MetaCons "RUB" 'PrefixI 'False) (U1 :: Type -> Type) :+: C1 ('MetaCons "SAR" 'PrefixI 'False) (U1 :: Type -> Type)) :+: (C1 ('MetaCons "SEK" 'PrefixI 'False) (U1 :: Type -> Type) :+: C1 ('MetaCons "SGD" 'PrefixI 'False) (U1 :: Type -> Type)))) :+: ((C1 ('MetaCons "THB" 'PrefixI 'False) (U1 :: Type -> Type) :+: (C1 ('MetaCons "TTD" 'PrefixI 'False) (U1 :: Type -> Type) :+: C1 ('MetaCons "USD" 'PrefixI 'False) (U1 :: Type -> Type))) :+: ((C1 ('MetaCons "VND" 'PrefixI 'False) (U1 :: Type -> Type) :+: C1 ('MetaCons "ZAR" 'PrefixI 'False) (U1 :: Type -> Type)) :+: (C1 ('MetaCons "UAH" 'PrefixI 'False) (U1 :: Type -> Type) :+: C1 ('MetaCons "TRY" 'PrefixI 'False) (U1 :: Type -> Type)))))))

data AmountOfMoneyData Source #

Instances

Instances details
Eq AmountOfMoneyData Source # 
Instance details

Defined in Duckling.AmountOfMoney.Types

Ord AmountOfMoneyData Source # 
Instance details

Defined in Duckling.AmountOfMoney.Types

Show AmountOfMoneyData Source # 
Instance details

Defined in Duckling.AmountOfMoney.Types

Generic AmountOfMoneyData Source # 
Instance details

Defined in Duckling.AmountOfMoney.Types

Associated Types

type Rep AmountOfMoneyData :: Type -> Type #

Hashable AmountOfMoneyData Source # 
Instance details

Defined in Duckling.AmountOfMoney.Types

NFData AmountOfMoneyData Source # 
Instance details

Defined in Duckling.AmountOfMoney.Types

Methods

rnf :: AmountOfMoneyData -> () #

Resolve AmountOfMoneyData Source # 
Instance details

Defined in Duckling.AmountOfMoney.Types

type Rep AmountOfMoneyData Source # 
Instance details

Defined in Duckling.AmountOfMoney.Types

type Rep AmountOfMoneyData = D1 ('MetaData "AmountOfMoneyData" "Duckling.AmountOfMoney.Types" "duckling-0.2.0.0-4AU1pRwMU7E8YjNdB7ILfy" 'False) (C1 ('MetaCons "AmountOfMoneyData" 'PrefixI 'True) ((S1 ('MetaSel ('Just "value") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedLazy) (Rec0 (Maybe Double)) :*: S1 ('MetaSel ('Just "currency") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedLazy) (Rec0 Currency)) :*: (S1 ('MetaSel ('Just "minValue") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedLazy) (Rec0 (Maybe Double)) :*: (S1 ('MetaSel ('Just "maxValue") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedLazy) (Rec0 (Maybe Double)) :*: S1 ('MetaSel ('Just "latent") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedLazy) (Rec0 Bool)))))
type ResolvedValue AmountOfMoneyData Source # 
Instance details

Defined in Duckling.AmountOfMoney.Types

data IntervalDirection Source #

Constructors

Above 
Under 

Instances

Instances details
Eq IntervalDirection Source # 
Instance details

Defined in Duckling.AmountOfMoney.Types

Ord IntervalDirection Source # 
Instance details

Defined in Duckling.AmountOfMoney.Types

Show IntervalDirection Source # 
Instance details

Defined in Duckling.AmountOfMoney.Types

Generic IntervalDirection Source # 
Instance details

Defined in Duckling.AmountOfMoney.Types

Associated Types

type Rep IntervalDirection :: Type -> Type #

Hashable IntervalDirection Source # 
Instance details

Defined in Duckling.AmountOfMoney.Types

NFData IntervalDirection Source # 
Instance details

Defined in Duckling.AmountOfMoney.Types

Methods

rnf :: IntervalDirection -> () #

type Rep IntervalDirection Source # 
Instance details

Defined in Duckling.AmountOfMoney.Types

type Rep IntervalDirection = D1 ('MetaData "IntervalDirection" "Duckling.AmountOfMoney.Types" "duckling-0.2.0.0-4AU1pRwMU7E8YjNdB7ILfy" 'False) (C1 ('MetaCons "Above" 'PrefixI 'False) (U1 :: Type -> Type) :+: C1 ('MetaCons "Under" 'PrefixI 'False) (U1 :: Type -> Type))