Safe Haskell | None |
---|---|
Language | Haskell2010 |
Documentation
Instances
data QuantityData Source #
Instances
data IntervalDirection Source #
Instances
data SingleValue Source #
Instances
data QuantityValue Source #
SimpleValue SingleValue | |
IntervalValue (SingleValue, SingleValue) | |
OpenIntervalValue (SingleValue, IntervalDirection) |
Instances
Eq QuantityValue Source # | |
Defined in Duckling.Quantity.Types (==) :: QuantityValue -> QuantityValue -> Bool # (/=) :: QuantityValue -> QuantityValue -> Bool # | |
Ord QuantityValue Source # | |
Defined in Duckling.Quantity.Types compare :: QuantityValue -> QuantityValue -> Ordering # (<) :: QuantityValue -> QuantityValue -> Bool # (<=) :: QuantityValue -> QuantityValue -> Bool # (>) :: QuantityValue -> QuantityValue -> Bool # (>=) :: QuantityValue -> QuantityValue -> Bool # max :: QuantityValue -> QuantityValue -> QuantityValue # min :: QuantityValue -> QuantityValue -> QuantityValue # | |
Show QuantityValue Source # | |
Defined in Duckling.Quantity.Types showsPrec :: Int -> QuantityValue -> ShowS # show :: QuantityValue -> String # showList :: [QuantityValue] -> ShowS # | |
ToJSON QuantityValue Source # | |
Defined in Duckling.Quantity.Types toJSON :: QuantityValue -> Value # toEncoding :: QuantityValue -> Encoding # toJSONList :: [QuantityValue] -> Value # toEncodingList :: [QuantityValue] -> Encoding # |
openInterval :: IntervalDirection -> Unit -> Double -> Maybe Text -> QuantityValue Source #