| Safe Haskell | None |
|---|---|
| Language | Haskell2010 |
Duckling.Volume.Types
Documentation
Constructors
| Gallon | |
| Hectolitre | |
| Litre | |
| Centilitre | |
| Millilitre |
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 #
Constructors
| VolumeData | |
Instances
data IntervalDirection Source #
Instances
data SingleValue Source #
Constructors
| SingleValue | |
Instances
| Eq SingleValue Source # | |
Defined in Duckling.Volume.Types | |
| Show SingleValue Source # | |
Defined in Duckling.Volume.Types Methods showsPrec :: Int -> SingleValue -> ShowS # show :: SingleValue -> String # showList :: [SingleValue] -> ShowS # | |
| ToJSON SingleValue Source # | |
Defined in Duckling.Volume.Types Methods toJSON :: SingleValue -> Value # toEncoding :: SingleValue -> Encoding # toJSONList :: [SingleValue] -> Value # toEncodingList :: [SingleValue] -> Encoding # | |
data VolumeValue Source #
Constructors
| SimpleValue SingleValue | |
| IntervalValue (SingleValue, SingleValue) | |
| OpenIntervalValue (SingleValue, IntervalDirection) |
Instances
| Eq VolumeValue Source # | |
Defined in Duckling.Volume.Types | |
| Show VolumeValue Source # | |
Defined in Duckling.Volume.Types Methods showsPrec :: Int -> VolumeValue -> ShowS # show :: VolumeValue -> String # showList :: [VolumeValue] -> ShowS # | |
| ToJSON VolumeValue Source # | |
Defined in Duckling.Volume.Types Methods toJSON :: VolumeValue -> Value # toEncoding :: VolumeValue -> Encoding # toJSONList :: [VolumeValue] -> Value # toEncodingList :: [VolumeValue] -> Encoding # | |
openInterval :: IntervalDirection -> Unit -> Double -> VolumeValue Source #