Safe Haskell | None |
---|---|
Language | Haskell2010 |
Documentation
Instances
Eq Unit Source # | |
Ord Unit Source # | |
Show Unit Source # | |
Generic Unit Source # | |
Hashable Unit Source # | |
Defined in Duckling.Volume.Types | |
ToJSON Unit Source # | |
Defined in Duckling.Volume.Types | |
NFData Unit Source # | |
Defined in Duckling.Volume.Types | |
type Rep Unit Source # | |
Defined in Duckling.Volume.Types type Rep Unit = D1 ('MetaData "Unit" "Duckling.Volume.Types" "duckling-0.2.0.0-4AU1pRwMU7E8YjNdB7ILfy" 'False) ((C1 ('MetaCons "Gallon" 'PrefixI 'False) (U1 :: Type -> Type) :+: C1 ('MetaCons "Hectolitre" 'PrefixI 'False) (U1 :: Type -> Type)) :+: (C1 ('MetaCons "Litre" 'PrefixI 'False) (U1 :: Type -> Type) :+: (C1 ('MetaCons "Centilitre" 'PrefixI 'False) (U1 :: Type -> Type) :+: C1 ('MetaCons "Millilitre" 'PrefixI 'False) (U1 :: Type -> Type)))) |
data VolumeData Source #
Instances
data IntervalDirection Source #
Instances
data SingleValue Source #
Instances
Eq SingleValue Source # | |
Defined in Duckling.Volume.Types (==) :: SingleValue -> SingleValue -> Bool # (/=) :: SingleValue -> SingleValue -> Bool # | |
Show SingleValue Source # | |
Defined in Duckling.Volume.Types showsPrec :: Int -> SingleValue -> ShowS # show :: SingleValue -> String # showList :: [SingleValue] -> ShowS # | |
ToJSON SingleValue Source # | |
Defined in Duckling.Volume.Types toJSON :: SingleValue -> Value # toEncoding :: SingleValue -> Encoding # toJSONList :: [SingleValue] -> Value # toEncodingList :: [SingleValue] -> Encoding # |
data VolumeValue Source #
SimpleValue SingleValue | |
IntervalValue (SingleValue, SingleValue) | |
OpenIntervalValue (SingleValue, IntervalDirection) |
Instances
Eq VolumeValue Source # | |
Defined in Duckling.Volume.Types (==) :: VolumeValue -> VolumeValue -> Bool # (/=) :: VolumeValue -> VolumeValue -> Bool # | |
Show VolumeValue Source # | |
Defined in Duckling.Volume.Types showsPrec :: Int -> VolumeValue -> ShowS # show :: VolumeValue -> String # showList :: [VolumeValue] -> ShowS # | |
ToJSON VolumeValue Source # | |
Defined in Duckling.Volume.Types toJSON :: VolumeValue -> Value # toEncoding :: VolumeValue -> Encoding # toJSONList :: [VolumeValue] -> Value # toEncodingList :: [VolumeValue] -> Encoding # |
openInterval :: IntervalDirection -> Unit -> Double -> VolumeValue Source #