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

Safe HaskellNone
LanguageHaskell2010

Duckling.Quantity.Types

Documentation

data Unit Source #

Instances

Eq Unit Source # 

Methods

(==) :: Unit -> Unit -> Bool #

(/=) :: Unit -> Unit -> Bool #

Ord Unit Source # 

Methods

compare :: Unit -> Unit -> Ordering #

(<) :: Unit -> Unit -> Bool #

(<=) :: Unit -> Unit -> Bool #

(>) :: Unit -> Unit -> Bool #

(>=) :: Unit -> Unit -> Bool #

max :: Unit -> Unit -> Unit #

min :: Unit -> Unit -> Unit #

Show Unit Source # 

Methods

showsPrec :: Int -> Unit -> ShowS #

show :: Unit -> String #

showList :: [Unit] -> ShowS #

Generic Unit Source # 

Associated Types

type Rep Unit :: * -> * #

Methods

from :: Unit -> Rep Unit x #

to :: Rep Unit x -> Unit #

ToJSON Unit Source # 
NFData Unit Source # 

Methods

rnf :: Unit -> () #

Hashable Unit Source # 

Methods

hashWithSalt :: Int -> Unit -> Int #

hash :: Unit -> Int #

type Rep Unit Source # 
type Rep Unit = D1 * (MetaData "Unit" "Duckling.Quantity.Types" "duckling-0.1.5.0-Gv0cL4nVr7C13ZzNyroFYP" False) ((:+:) * ((:+:) * ((:+:) * (C1 * (MetaCons "Bowl" PrefixI False) (U1 *)) ((:+:) * (C1 * (MetaCons "Cup" PrefixI False) (U1 *)) (C1 * (MetaCons "Custom" PrefixI False) (S1 * (MetaSel (Nothing Symbol) NoSourceUnpackedness NoSourceStrictness DecidedLazy) (Rec0 * Text))))) ((:+:) * (C1 * (MetaCons "Dish" PrefixI False) (U1 *)) ((:+:) * (C1 * (MetaCons "Gram" PrefixI False) (U1 *)) (C1 * (MetaCons "Ounce" PrefixI False) (U1 *))))) ((:+:) * ((:+:) * (C1 * (MetaCons "Pint" PrefixI False) (U1 *)) ((:+:) * (C1 * (MetaCons "Pound" PrefixI False) (U1 *)) (C1 * (MetaCons "Quart" PrefixI False) (U1 *)))) ((:+:) * (C1 * (MetaCons "Tablespoon" PrefixI False) (U1 *)) ((:+:) * (C1 * (MetaCons "Teaspoon" PrefixI False) (U1 *)) (C1 * (MetaCons "Unnamed" PrefixI False) (U1 *))))))

data QuantityData Source #

Instances

Eq QuantityData Source # 
Ord QuantityData Source # 
Show QuantityData Source # 
Generic QuantityData Source # 

Associated Types

type Rep QuantityData :: * -> * #

NFData QuantityData Source # 

Methods

rnf :: QuantityData -> () #

Hashable QuantityData Source # 
Resolve QuantityData Source # 
type Rep QuantityData Source # 
type ResolvedValue QuantityData Source # 

data IntervalDirection Source #

Constructors

Above 
Under 

data SingleValue Source #

Constructors

SingleValue 

Instances

Eq SingleValue Source # 
Ord SingleValue Source # 
Show SingleValue Source # 
Generic SingleValue Source # 

Associated Types

type Rep SingleValue :: * -> * #

ToJSON SingleValue Source # 
NFData SingleValue Source # 

Methods

rnf :: SingleValue -> () #

Hashable SingleValue Source # 
type Rep SingleValue Source # 
type Rep SingleValue = D1 * (MetaData "SingleValue" "Duckling.Quantity.Types" "duckling-0.1.5.0-Gv0cL4nVr7C13ZzNyroFYP" False) (C1 * (MetaCons "SingleValue" PrefixI True) ((:*:) * (S1 * (MetaSel (Just Symbol "vUnit") NoSourceUnpackedness NoSourceStrictness DecidedLazy) (Rec0 * Unit)) ((:*:) * (S1 * (MetaSel (Just Symbol "vValue") NoSourceUnpackedness NoSourceStrictness DecidedLazy) (Rec0 * Double)) (S1 * (MetaSel (Just Symbol "vProduct") NoSourceUnpackedness NoSourceStrictness DecidedLazy) (Rec0 * (Maybe Text))))))