Safe Haskell | None |
---|---|
Language | Haskell2010 |
Documentation
data TemperatureUnit Source #
Instances
data TemperatureData Source #
Instances
data IntervalDirection Source #
Instances
data SingleValue Source #
Instances
Eq SingleValue Source # | |
Defined in Duckling.Temperature.Types (==) :: SingleValue -> SingleValue -> Bool # (/=) :: SingleValue -> SingleValue -> Bool # | |
Show SingleValue Source # | |
Defined in Duckling.Temperature.Types showsPrec :: Int -> SingleValue -> ShowS # show :: SingleValue -> String # showList :: [SingleValue] -> ShowS # | |
ToJSON SingleValue Source # | |
Defined in Duckling.Temperature.Types toJSON :: SingleValue -> Value # toEncoding :: SingleValue -> Encoding # toJSONList :: [SingleValue] -> Value # toEncodingList :: [SingleValue] -> Encoding # |
data TemperatureValue Source #
SimpleValue SingleValue | |
IntervalValue (SingleValue, SingleValue) | |
OpenIntervalValue (SingleValue, IntervalDirection) |
Instances
Eq TemperatureValue Source # | |
Defined in Duckling.Temperature.Types (==) :: TemperatureValue -> TemperatureValue -> Bool # (/=) :: TemperatureValue -> TemperatureValue -> Bool # | |
Show TemperatureValue Source # | |
Defined in Duckling.Temperature.Types showsPrec :: Int -> TemperatureValue -> ShowS # show :: TemperatureValue -> String # showList :: [TemperatureValue] -> ShowS # | |
ToJSON TemperatureValue Source # | |
Defined in Duckling.Temperature.Types toJSON :: TemperatureValue -> Value # toEncoding :: TemperatureValue -> Encoding # toJSONList :: [TemperatureValue] -> Value # toEncodingList :: [TemperatureValue] -> Encoding # |
simple :: TemperatureUnit -> Double -> TemperatureValue Source #
between :: TemperatureUnit -> (Double, Double) -> TemperatureValue Source #
above :: TemperatureUnit -> Double -> TemperatureValue Source #
under :: TemperatureUnit -> Double -> TemperatureValue Source #
single :: TemperatureUnit -> Double -> SingleValue Source #