Safe Haskell | Safe-Inferred |
---|---|
Language | Haskell2010 |
Lifx.Internal.ProductInfoMap
Synopsis
- productInfoMap :: Map Word32 (Features, Map Word32 ProductInfo)
- data Product = Product {}
- data ProductLookupError
- productLookup :: Word32 -> Word32 -> Word16 -> Word16 -> Either ProductLookupError Product
Documentation
Information about a particular LIFX product.
Instances
Generic Product Source # | |
Show Product Source # | |
Eq Product Source # | |
Ord Product Source # | |
Defined in Lifx.Internal.ProductInfoMap | |
type Rep Product Source # | |
Defined in Lifx.Internal.ProductInfoMap type Rep Product = D1 ('MetaData "Product" "Lifx.Internal.ProductInfoMap" "lifx-lan-0.8.4-Elng3AsAbdO3rTeYpYQMKg" 'False) (C1 ('MetaCons "Product" 'PrefixI 'True) (S1 ('MetaSel ('Just "name") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedLazy) (Rec0 Text) :*: (S1 ('MetaSel ('Just "id") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedLazy) (Rec0 Word32) :*: S1 ('MetaSel ('Just "features") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedLazy) (Rec0 Features)))) |
data ProductLookupError Source #
Constructors
UnknownVendorId Word32 | |
UnknownProductId Word32 |
Instances
productLookup :: Word32 -> Word32 -> Word16 -> Word16 -> Either ProductLookupError Product Source #