lifx-lan-0.1.0.0: LIFX LAN API
Safe HaskellNone
LanguageHaskell2010

Lifx.Lan

Synopsis

Documentation

data HSBK Source #

Constructors

HSBK 

Instances

Instances details
Eq HSBK Source # 
Instance details

Defined in Lifx.Lan

Methods

(==) :: HSBK -> HSBK -> Bool #

(/=) :: HSBK -> HSBK -> Bool #

Ord HSBK Source # 
Instance details

Defined in Lifx.Lan

Methods

compare :: HSBK -> HSBK -> Ordering #

(<) :: HSBK -> HSBK -> Bool #

(<=) :: HSBK -> HSBK -> Bool #

(>) :: HSBK -> HSBK -> Bool #

(>=) :: HSBK -> HSBK -> Bool #

max :: HSBK -> HSBK -> HSBK #

min :: HSBK -> HSBK -> HSBK #

Show HSBK Source # 
Instance details

Defined in Lifx.Lan

Methods

showsPrec :: Int -> HSBK -> ShowS #

show :: HSBK -> String #

showList :: [HSBK] -> ShowS #

Generic HSBK Source # 
Instance details

Defined in Lifx.Lan

Associated Types

type Rep HSBK :: Type -> Type #

Methods

from :: HSBK -> Rep HSBK x #

to :: Rep HSBK x -> HSBK #

type Rep HSBK Source # 
Instance details

Defined in Lifx.Lan

newtype Duration Source #

Constructors

Duration Word32 

Instances

Instances details
Eq Duration Source # 
Instance details

Defined in Lifx.Lan

Ord Duration Source # 
Instance details

Defined in Lifx.Lan

Show Duration Source # 
Instance details

Defined in Lifx.Lan

Generic Duration Source # 
Instance details

Defined in Lifx.Lan

Associated Types

type Rep Duration :: Type -> Type #

Methods

from :: Duration -> Rep Duration x #

to :: Rep Duration x -> Duration #

type Rep Duration Source # 
Instance details

Defined in Lifx.Lan

type Rep Duration = D1 ('MetaData "Duration" "Lifx.Lan" "lifx-lan-0.1.0.0-EZ3PzMpiR8lHI36pXr4BIp" 'True) (C1 ('MetaCons "Duration" 'PrefixI 'False) (S1 ('MetaSel ('Nothing :: Maybe Symbol) 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedLazy) (Rec0 Word32)))

newtype LifxT m a Source #

Constructors

LifxT 

Fields

Instances

Instances details
Monad m => MonadState Word8 (LifxT m) Source # 
Instance details

Defined in Lifx.Lan

Methods

get :: LifxT m Word8 #

put :: Word8 -> LifxT m () #

state :: (Word8 -> (a, Word8)) -> LifxT m a #

Monad m => Monad (LifxT m) Source # 
Instance details

Defined in Lifx.Lan

Methods

(>>=) :: LifxT m a -> (a -> LifxT m b) -> LifxT m b #

(>>) :: LifxT m a -> LifxT m b -> LifxT m b #

return :: a -> LifxT m a #

Functor m => Functor (LifxT m) Source # 
Instance details

Defined in Lifx.Lan

Methods

fmap :: (a -> b) -> LifxT m a -> LifxT m b #

(<$) :: a -> LifxT m b -> LifxT m a #

Monad m => Applicative (LifxT m) Source # 
Instance details

Defined in Lifx.Lan

Methods

pure :: a -> LifxT m a #

(<*>) :: LifxT m (a -> b) -> LifxT m a -> LifxT m b #

liftA2 :: (a -> b -> c) -> LifxT m a -> LifxT m b -> LifxT m c #

(*>) :: LifxT m a -> LifxT m b -> LifxT m b #

(<*) :: LifxT m a -> LifxT m b -> LifxT m a #

MonadIO m => MonadIO (LifxT m) Source # 
Instance details

Defined in Lifx.Lan

Methods

liftIO :: IO a -> LifxT m a #

MonadIO m => MonadLifx (LifxT m) Source # 
Instance details

Defined in Lifx.Lan

Monad m => MonadReader (Socket, Word32) (LifxT m) Source # 
Instance details

Defined in Lifx.Lan

Methods

ask :: LifxT m (Socket, Word32) #

local :: ((Socket, Word32) -> (Socket, Word32)) -> LifxT m a -> LifxT m a #

reader :: ((Socket, Word32) -> a) -> LifxT m a #

runLifx :: Lifx a -> IO a Source #

runLifxT :: MonadIO m => LifxT m a -> m a Source #

succ' :: (Eq a, Bounded a, Enum a) => a -> a Source #

Safe, wraparound variant of succ.