-- 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.2 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 Generic Group instance Show HueData instance Generic HueData instance Show HueError instance Generic HueError instance Show HueResult instance Generic 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 D1Group instance Constructor C1_0Group instance Selector S1_0_0Group instance Selector S1_0_1Group instance Selector S1_0_2Group instance Datatype D1HueData instance Constructor C1_0HueData instance Selector S1_0_0HueData instance Selector S1_0_1HueData instance Datatype D1HueError instance Constructor C1_0HueError instance Datatype D1HueResult instance Constructor C1_0HueResult instance ToJSON HueError instance FromJSON HueError instance ToJSON HueResult instance FromJSON HueResult instance ToJSON Group instance ToJSON LightState instance ToJSON Light instance ToJSON HueData instance FromJSON Group instance FromJSON LightState instance FromJSON Light instance FromJSON HueData