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

Safe HaskellNone
LanguageHaskell2010

Duckling.Temperature.Types

Documentation

data TemperatureUnit Source #

Constructors

Degree 
Celsius 
Fahrenheit 

Instances

Eq TemperatureUnit Source # 
Ord TemperatureUnit Source # 
Show TemperatureUnit Source # 
Generic TemperatureUnit Source # 
Hashable TemperatureUnit Source # 
ToJSON TemperatureUnit Source # 
NFData TemperatureUnit Source # 

Methods

rnf :: TemperatureUnit -> () #

type Rep TemperatureUnit Source # 
type Rep TemperatureUnit = D1 (MetaData "TemperatureUnit" "Duckling.Temperature.Types" "duckling-0.1.3.0-GQaqHc6ePoa7KIbvUKMaTD" False) ((:+:) (C1 (MetaCons "Degree" PrefixI False) U1) ((:+:) (C1 (MetaCons "Celsius" PrefixI False) U1) (C1 (MetaCons "Fahrenheit" PrefixI False) U1)))

data TemperatureData Source #

Constructors

TemperatureData 

Instances

Eq TemperatureData Source # 
Ord TemperatureData Source # 
Show TemperatureData Source # 
Generic TemperatureData Source # 
Hashable TemperatureData Source # 
NFData TemperatureData Source # 

Methods

rnf :: TemperatureData -> () #

Resolve TemperatureData Source # 
type Rep TemperatureData Source # 
type Rep TemperatureData = D1 (MetaData "TemperatureData" "Duckling.Temperature.Types" "duckling-0.1.3.0-GQaqHc6ePoa7KIbvUKMaTD" False) (C1 (MetaCons "TemperatureData" PrefixI True) ((:*:) (S1 (MetaSel (Just Symbol "unit") NoSourceUnpackedness NoSourceStrictness DecidedLazy) (Rec0 (Maybe TemperatureUnit))) (S1 (MetaSel (Just Symbol "value") NoSourceUnpackedness NoSourceStrictness DecidedLazy) (Rec0 Int))))
type ResolvedValue TemperatureData Source #