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

Safe HaskellNone
LanguageHaskell2010

Duckling.Volume.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 #

Hashable Unit Source # 

Methods

hashWithSalt :: Int -> Unit -> Int #

hash :: Unit -> Int #

ToJSON Unit Source # 
NFData Unit Source # 

Methods

rnf :: Unit -> () #

type Rep Unit Source # 
type Rep Unit = D1 (MetaData "Unit" "Duckling.Volume.Types" "duckling-0.1.1.0-C08zKxaAjdQ7nnZQDuNARP" False) ((:+:) ((:+:) (C1 (MetaCons "Gallon" PrefixI False) U1) (C1 (MetaCons "Hectolitre" PrefixI False) U1)) ((:+:) (C1 (MetaCons "Litre" PrefixI False) U1) (C1 (MetaCons "Millilitre" PrefixI False) U1)))

data VolumeData Source #

Constructors

VolumeData 

Fields

Instances

Eq VolumeData Source # 
Ord VolumeData Source # 
Show VolumeData Source # 
Generic VolumeData Source # 

Associated Types

type Rep VolumeData :: * -> * #

Hashable VolumeData Source # 
NFData VolumeData Source # 

Methods

rnf :: VolumeData -> () #

Resolve VolumeData Source # 
type Rep VolumeData Source # 
type Rep VolumeData = D1 (MetaData "VolumeData" "Duckling.Volume.Types" "duckling-0.1.1.0-C08zKxaAjdQ7nnZQDuNARP" False) (C1 (MetaCons "VolumeData" PrefixI True) ((:*:) (S1 (MetaSel (Just Symbol "unit") NoSourceUnpackedness NoSourceStrictness DecidedLazy) (Rec0 (Maybe Unit))) (S1 (MetaSel (Just Symbol "value") NoSourceUnpackedness NoSourceStrictness DecidedLazy) (Rec0 Double))))
type ResolvedValue VolumeData Source #