| Safe Haskell | None |
|---|---|
| Language | Haskell2010 |
Duckling.Distance.Types
Documentation
Constructors
| Centimetre | |
| Foot | |
| Inch | |
| Kilometre | |
| M | |
| Metre | |
| Mile | |
| Millimetre | |
| Yard |
Instances
data DistanceData Source #
Constructors
| DistanceData | |
Instances
data IntervalDirection Source #
Instances
data SingleValue Source #
Constructors
| SingleValue | |
Instances
| Eq SingleValue Source # | |
Defined in Duckling.Distance.Types | |
| Ord SingleValue Source # | |
Defined in Duckling.Distance.Types Methods 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 Methods showsPrec :: Int -> SingleValue -> ShowS # show :: SingleValue -> String # showList :: [SingleValue] -> ShowS # | |
| ToJSON SingleValue Source # | |
Defined in Duckling.Distance.Types Methods toJSON :: SingleValue -> Value # toEncoding :: SingleValue -> Encoding # toJSONList :: [SingleValue] -> Value # toEncodingList :: [SingleValue] -> Encoding # | |
data DistanceValue Source #
Constructors
| SimpleValue SingleValue | |
| IntervalValue (SingleValue, SingleValue) | |
| OpenIntervalValue (SingleValue, IntervalDirection) |
Instances
openInterval :: IntervalDirection -> Unit -> Double -> DistanceValue Source #