duckling-0.2.0.0: A Haskell library for parsing text into structured data.
Safe HaskellNone
LanguageHaskell2010

Duckling.Volume.Types

Documentation

data Unit Source #

Instances

Instances details
Eq Unit Source # 
Instance details

Defined in Duckling.Volume.Types

Methods

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

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

Ord Unit Source # 
Instance details

Defined in Duckling.Volume.Types

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 # 
Instance details

Defined in Duckling.Volume.Types

Methods

showsPrec :: Int -> Unit -> ShowS #

show :: Unit -> String #

showList :: [Unit] -> ShowS #

Generic Unit Source # 
Instance details

Defined in Duckling.Volume.Types

Associated Types

type Rep Unit :: Type -> Type #

Methods

from :: Unit -> Rep Unit x #

to :: Rep Unit x -> Unit #

Hashable Unit Source # 
Instance details

Defined in Duckling.Volume.Types

Methods

hashWithSalt :: Int -> Unit -> Int #

hash :: Unit -> Int #

ToJSON Unit Source # 
Instance details

Defined in Duckling.Volume.Types

NFData Unit Source # 
Instance details

Defined in Duckling.Volume.Types

Methods

rnf :: Unit -> () #

type Rep Unit Source # 
Instance details

Defined in Duckling.Volume.Types

type Rep Unit = D1 ('MetaData "Unit" "Duckling.Volume.Types" "duckling-0.2.0.0-4AU1pRwMU7E8YjNdB7ILfy" 'False) ((C1 ('MetaCons "Gallon" 'PrefixI 'False) (U1 :: Type -> Type) :+: C1 ('MetaCons "Hectolitre" 'PrefixI 'False) (U1 :: Type -> Type)) :+: (C1 ('MetaCons "Litre" 'PrefixI 'False) (U1 :: Type -> Type) :+: (C1 ('MetaCons "Centilitre" 'PrefixI 'False) (U1 :: Type -> Type) :+: C1 ('MetaCons "Millilitre" 'PrefixI 'False) (U1 :: Type -> Type))))

data VolumeData Source #

Instances

Instances details
Eq VolumeData Source # 
Instance details

Defined in Duckling.Volume.Types

Ord VolumeData Source # 
Instance details

Defined in Duckling.Volume.Types

Show VolumeData Source # 
Instance details

Defined in Duckling.Volume.Types

Generic VolumeData Source # 
Instance details

Defined in Duckling.Volume.Types

Associated Types

type Rep VolumeData :: Type -> Type #

Hashable VolumeData Source # 
Instance details

Defined in Duckling.Volume.Types

NFData VolumeData Source # 
Instance details

Defined in Duckling.Volume.Types

Methods

rnf :: VolumeData -> () #

Resolve VolumeData Source # 
Instance details

Defined in Duckling.Volume.Types

Associated Types

type ResolvedValue VolumeData Source #

type Rep VolumeData Source # 
Instance details

Defined in Duckling.Volume.Types

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

Defined in Duckling.Volume.Types

data IntervalDirection Source #

Constructors

Above 
Under 

Instances

Instances details
Eq IntervalDirection Source # 
Instance details

Defined in Duckling.Volume.Types

Ord IntervalDirection Source # 
Instance details

Defined in Duckling.Volume.Types

Show IntervalDirection Source # 
Instance details

Defined in Duckling.Volume.Types

Generic IntervalDirection Source # 
Instance details

Defined in Duckling.Volume.Types

Associated Types

type Rep IntervalDirection :: Type -> Type #

Hashable IntervalDirection Source # 
Instance details

Defined in Duckling.Volume.Types

NFData IntervalDirection Source # 
Instance details

Defined in Duckling.Volume.Types

Methods

rnf :: IntervalDirection -> () #

type Rep IntervalDirection Source # 
Instance details

Defined in Duckling.Volume.Types

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