-- Hoogle documentation, generated by Haddock -- See Hoogle, http://www.haskell.org/hoogle/ -- | API for controlling Philips Hue lights -- -- API for controlling Philips Hue lights @package HueAPI @version 0.1.4 module HueAPI data HueData Hue :: Map Name Light -> Map Name Group -> HueData lights :: HueData -> Map Name Light groups :: HueData -> Map Name Group data Light Light :: LightState -> Name -> String -> String -> Light state :: Light -> LightState name :: Light -> Name modelid :: Light -> String swversion :: Light -> String data LightState LightState :: Bool -> Int -> Int -> Int -> LightState on :: LightState -> Bool bri :: LightState -> Int hue :: LightState -> Int sat :: LightState -> Int data Group Group :: LightState -> Name -> [Name] -> Group action :: Group -> LightState groupName :: Group -> Name groupLights :: Group -> [Name] type Name = String type Hue = StateT HueData (ReaderT String IO) runHue :: String -> String -> Hue a -> IO a getState :: Hue HueData getLightState :: Name -> Hue LightState updateLight :: Name -> LightState -> Hue () initLight :: Name -> LightState -> Hue () instance Show LightState instance Generic LightState instance Show Light instance Generic Light instance Show Group instance Show HueData instance Generic HueData instance Show HueError instance Show HueResult instance Datatype D1LightState instance Constructor C1_0LightState instance Selector S1_0_0LightState instance Selector S1_0_1LightState instance Selector S1_0_2LightState instance Selector S1_0_3LightState instance Datatype D1Light instance Constructor C1_0Light instance Selector S1_0_0Light instance Selector S1_0_1Light instance Selector S1_0_2Light instance Selector S1_0_3Light instance Datatype D1HueData instance Constructor C1_0HueData instance Selector S1_0_0HueData instance Selector S1_0_1HueData instance FromJSON HueError instance FromJSON HueResult instance FromJSON Group instance FromJSON LightState instance FromJSON Light instance FromJSON HueData