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