blucontrol-0.3.0.0: Configurable blue light filter
Safe HaskellNone
LanguageHaskell2010

Blucontrol.Gamma.Linear

Synopsis

Documentation

data GammaLinearT c m a Source #

Instances

Instances details
MonadBase b m => MonadBase b (GammaLinearT c m) Source # 
Instance details

Defined in Blucontrol.Gamma.Linear

Methods

liftBase :: b α -> GammaLinearT c m α #

MonadBaseControl b m => MonadBaseControl b (GammaLinearT c m) Source # 
Instance details

Defined in Blucontrol.Gamma.Linear

Associated Types

type StM (GammaLinearT c m) a #

Methods

liftBaseWith :: (RunInBase (GammaLinearT c m) b -> b a) -> GammaLinearT c m a #

restoreM :: StM (GammaLinearT c m) a -> GammaLinearT c m a #

MonadReader r m => MonadReader r (GammaLinearT c m) Source # 
Instance details

Defined in Blucontrol.Gamma.Linear

Methods

ask :: GammaLinearT c m r #

local :: (r -> r) -> GammaLinearT c m a -> GammaLinearT c m a #

reader :: (r -> a) -> GammaLinearT c m a #

MonadTrans (GammaLinearT c) Source # 
Instance details

Defined in Blucontrol.Gamma.Linear

Methods

lift :: Monad m => m a -> GammaLinearT c m a #

MonadTransControl (GammaLinearT c) Source # 
Instance details

Defined in Blucontrol.Gamma.Linear

Associated Types

type StT (GammaLinearT c) a #

Methods

liftWith :: Monad m => (Run (GammaLinearT c) -> m a) -> GammaLinearT c m a #

restoreT :: Monad m => m (StT (GammaLinearT c) a) -> GammaLinearT c m a #

Monad m => Monad (GammaLinearT c m) Source # 
Instance details

Defined in Blucontrol.Gamma.Linear

Methods

(>>=) :: GammaLinearT c m a -> (a -> GammaLinearT c m b) -> GammaLinearT c m b #

(>>) :: GammaLinearT c m a -> GammaLinearT c m b -> GammaLinearT c m b #

return :: a -> GammaLinearT c m a #

Functor m => Functor (GammaLinearT c m) Source # 
Instance details

Defined in Blucontrol.Gamma.Linear

Methods

fmap :: (a -> b) -> GammaLinearT c m a -> GammaLinearT c m b #

(<$) :: a -> GammaLinearT c m b -> GammaLinearT c m a #

Applicative m => Applicative (GammaLinearT c m) Source # 
Instance details

Defined in Blucontrol.Gamma.Linear

Methods

pure :: a -> GammaLinearT c m a #

(<*>) :: GammaLinearT c m (a -> b) -> GammaLinearT c m a -> GammaLinearT c m b #

liftA2 :: (a -> b -> c0) -> GammaLinearT c m a -> GammaLinearT c m b -> GammaLinearT c m c0 #

(*>) :: GammaLinearT c m a -> GammaLinearT c m b -> GammaLinearT c m b #

(<*) :: GammaLinearT c m a -> GammaLinearT c m b -> GammaLinearT c m a #

MonadBase IO m => MonadGamma (GammaLinearT Trichromaticity m) Source # 
Instance details

Defined in Blucontrol.Gamma.Linear

MonadBase IO m => MonadGamma (GammaLinearT Temperature m) Source # 
Instance details

Defined in Blucontrol.Gamma.Linear

type StT (GammaLinearT c) a Source # 
Instance details

Defined in Blucontrol.Gamma.Linear

type StT (GammaLinearT c) a = StT (ReaderT (Map TimeOfDay c)) a
type StM (GammaLinearT c m) a Source # 
Instance details

Defined in Blucontrol.Gamma.Linear

type StM (GammaLinearT c m) a = StM (ReaderT (Map TimeOfDay c) m) a

data Time Source #

Constructors

Hour :. Minute infix 7 

Instances

Instances details
Bounded Time Source # 
Instance details

Defined in Blucontrol.Gamma.Linear

Enum Time Source # 
Instance details

Defined in Blucontrol.Gamma.Linear

Methods

succ :: Time -> Time #

pred :: Time -> Time #

toEnum :: Int -> Time #

fromEnum :: Time -> Int #

enumFrom :: Time -> [Time] #

enumFromThen :: Time -> Time -> [Time] #

enumFromTo :: Time -> Time -> [Time] #

enumFromThenTo :: Time -> Time -> Time -> [Time] #

Eq Time Source # 
Instance details

Defined in Blucontrol.Gamma.Linear

Methods

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

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

Ord Time Source # 
Instance details

Defined in Blucontrol.Gamma.Linear

Methods

compare :: Time -> Time -> Ordering #

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

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

(>) :: Time -> Time -> Bool #

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

max :: Time -> Time -> Time #

min :: Time -> Time -> Time #

Read Time Source # 
Instance details

Defined in Blucontrol.Gamma.Linear

Show Time Source # 
Instance details

Defined in Blucontrol.Gamma.Linear

Methods

showsPrec :: Int -> Time -> ShowS #

show :: Time -> String #

showList :: [Time] -> ShowS #

Generic Time Source # 
Instance details

Defined in Blucontrol.Gamma.Linear

Associated Types

type Rep Time :: Type -> Type #

Methods

from :: Time -> Rep Time x #

to :: Rep Time x -> Time #

NFData Time Source # 
Instance details

Defined in Blucontrol.Gamma.Linear

Methods

rnf :: Time -> () #

type Rep Time Source # 
Instance details

Defined in Blucontrol.Gamma.Linear

data Hour Source #

Instances

Instances details
Bounded Hour Source # 
Instance details

Defined in Blucontrol.Gamma.Linear

Enum Hour Source # 
Instance details

Defined in Blucontrol.Gamma.Linear

Methods

succ :: Hour -> Hour #

pred :: Hour -> Hour #

toEnum :: Int -> Hour #

fromEnum :: Hour -> Int #

enumFrom :: Hour -> [Hour] #

enumFromThen :: Hour -> Hour -> [Hour] #

enumFromTo :: Hour -> Hour -> [Hour] #

enumFromThenTo :: Hour -> Hour -> Hour -> [Hour] #

Eq Hour Source # 
Instance details

Defined in Blucontrol.Gamma.Linear

Methods

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

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

Integral Hour Source # 
Instance details

Defined in Blucontrol.Gamma.Linear

Methods

quot :: Hour -> Hour -> Hour #

rem :: Hour -> Hour -> Hour #

div :: Hour -> Hour -> Hour #

mod :: Hour -> Hour -> Hour #

quotRem :: Hour -> Hour -> (Hour, Hour) #

divMod :: Hour -> Hour -> (Hour, Hour) #

toInteger :: Hour -> Integer #

Num Hour Source # 
Instance details

Defined in Blucontrol.Gamma.Linear

Methods

(+) :: Hour -> Hour -> Hour #

(-) :: Hour -> Hour -> Hour #

(*) :: Hour -> Hour -> Hour #

negate :: Hour -> Hour #

abs :: Hour -> Hour #

signum :: Hour -> Hour #

fromInteger :: Integer -> Hour #

Ord Hour Source # 
Instance details

Defined in Blucontrol.Gamma.Linear

Methods

compare :: Hour -> Hour -> Ordering #

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

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

(>) :: Hour -> Hour -> Bool #

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

max :: Hour -> Hour -> Hour #

min :: Hour -> Hour -> Hour #

Read Hour Source # 
Instance details

Defined in Blucontrol.Gamma.Linear

Real Hour Source # 
Instance details

Defined in Blucontrol.Gamma.Linear

Methods

toRational :: Hour -> Rational #

Show Hour Source # 
Instance details

Defined in Blucontrol.Gamma.Linear

Methods

showsPrec :: Int -> Hour -> ShowS #

show :: Hour -> String #

showList :: [Hour] -> ShowS #

Generic Hour Source # 
Instance details

Defined in Blucontrol.Gamma.Linear

Associated Types

type Rep Hour :: Type -> Type #

Methods

from :: Hour -> Rep Hour x #

to :: Rep Hour x -> Hour #

NFData Hour Source # 
Instance details

Defined in Blucontrol.Gamma.Linear

Methods

rnf :: Hour -> () #

type Rep Hour Source # 
Instance details

Defined in Blucontrol.Gamma.Linear

type Rep Hour = D1 ('MetaData "Hour" "Blucontrol.Gamma.Linear" "blucontrol-0.3.0.0-inplace" 'True) (C1 ('MetaCons "Hour" 'PrefixI 'True) (S1 ('MetaSel ('Just "unHour") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedLazy) (Rec0 (Finite 24))))

data Minute Source #

Instances

Instances details
Bounded Minute Source # 
Instance details

Defined in Blucontrol.Gamma.Linear

Enum Minute Source # 
Instance details

Defined in Blucontrol.Gamma.Linear

Eq Minute Source # 
Instance details

Defined in Blucontrol.Gamma.Linear

Methods

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

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

Integral Minute Source # 
Instance details

Defined in Blucontrol.Gamma.Linear

Num Minute Source # 
Instance details

Defined in Blucontrol.Gamma.Linear

Ord Minute Source # 
Instance details

Defined in Blucontrol.Gamma.Linear

Read Minute Source # 
Instance details

Defined in Blucontrol.Gamma.Linear

Real Minute Source # 
Instance details

Defined in Blucontrol.Gamma.Linear

Show Minute Source # 
Instance details

Defined in Blucontrol.Gamma.Linear

Generic Minute Source # 
Instance details

Defined in Blucontrol.Gamma.Linear

Associated Types

type Rep Minute :: Type -> Type #

Methods

from :: Minute -> Rep Minute x #

to :: Rep Minute x -> Minute #

NFData Minute Source # 
Instance details

Defined in Blucontrol.Gamma.Linear

Methods

rnf :: Minute -> () #

type Rep Minute Source # 
Instance details

Defined in Blucontrol.Gamma.Linear

type Rep Minute = D1 ('MetaData "Minute" "Blucontrol.Gamma.Linear" "blucontrol-0.3.0.0-inplace" 'True) (C1 ('MetaCons "Minute" 'PrefixI 'True) (S1 ('MetaSel ('Just "unMinute") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedLazy) (Rec0 (Finite 60))))

(==>) :: RGB c => Time -> c -> (TimeOfDay, c) infix 6 Source #

data NonEmpty a #

Non-empty (and non-strict) list type.

Since: base-4.9.0.0

Constructors

a :| [a] infixr 5 

Instances

Instances details
Monad NonEmpty

Since: base-4.9.0.0

Instance details

Defined in GHC.Base

Methods

(>>=) :: NonEmpty a -> (a -> NonEmpty b) -> NonEmpty b #

(>>) :: NonEmpty a -> NonEmpty b -> NonEmpty b #

return :: a -> NonEmpty a #

Functor NonEmpty

Since: base-4.9.0.0

Instance details

Defined in GHC.Base

Methods

fmap :: (a -> b) -> NonEmpty a -> NonEmpty b #

(<$) :: a -> NonEmpty b -> NonEmpty a #

MonadFix NonEmpty

Since: base-4.9.0.0

Instance details

Defined in Control.Monad.Fix

Methods

mfix :: (a -> NonEmpty a) -> NonEmpty a #

Applicative NonEmpty

Since: base-4.9.0.0

Instance details

Defined in GHC.Base

Methods

pure :: a -> NonEmpty a #

(<*>) :: NonEmpty (a -> b) -> NonEmpty a -> NonEmpty b #

liftA2 :: (a -> b -> c) -> NonEmpty a -> NonEmpty b -> NonEmpty c #

(*>) :: NonEmpty a -> NonEmpty b -> NonEmpty b #

(<*) :: NonEmpty a -> NonEmpty b -> NonEmpty a #

Foldable NonEmpty

Since: base-4.9.0.0

Instance details

Defined in Data.Foldable

Methods

fold :: Monoid m => NonEmpty m -> m #

foldMap :: Monoid m => (a -> m) -> NonEmpty a -> m #

foldMap' :: Monoid m => (a -> m) -> NonEmpty a -> m #

foldr :: (a -> b -> b) -> b -> NonEmpty a -> b #

foldr' :: (a -> b -> b) -> b -> NonEmpty a -> b #

foldl :: (b -> a -> b) -> b -> NonEmpty a -> b #

foldl' :: (b -> a -> b) -> b -> NonEmpty a -> b #

foldr1 :: (a -> a -> a) -> NonEmpty a -> a #

foldl1 :: (a -> a -> a) -> NonEmpty a -> a #

toList :: NonEmpty a -> [a] #

null :: NonEmpty a -> Bool #

length :: NonEmpty a -> Int #

elem :: Eq a => a -> NonEmpty a -> Bool #

maximum :: Ord a => NonEmpty a -> a #

minimum :: Ord a => NonEmpty a -> a #

sum :: Num a => NonEmpty a -> a #

product :: Num a => NonEmpty a -> a #

Traversable NonEmpty

Since: base-4.9.0.0

Instance details

Defined in Data.Traversable

Methods

traverse :: Applicative f => (a -> f b) -> NonEmpty a -> f (NonEmpty b) #

sequenceA :: Applicative f => NonEmpty (f a) -> f (NonEmpty a) #

mapM :: Monad m => (a -> m b) -> NonEmpty a -> m (NonEmpty b) #

sequence :: Monad m => NonEmpty (m a) -> m (NonEmpty a) #

Eq1 NonEmpty

Since: base-4.10.0.0

Instance details

Defined in Data.Functor.Classes

Methods

liftEq :: (a -> b -> Bool) -> NonEmpty a -> NonEmpty b -> Bool #

Ord1 NonEmpty

Since: base-4.10.0.0

Instance details

Defined in Data.Functor.Classes

Methods

liftCompare :: (a -> b -> Ordering) -> NonEmpty a -> NonEmpty b -> Ordering #

Read1 NonEmpty

Since: base-4.10.0.0

Instance details

Defined in Data.Functor.Classes

Methods

liftReadsPrec :: (Int -> ReadS a) -> ReadS [a] -> Int -> ReadS (NonEmpty a) #

liftReadList :: (Int -> ReadS a) -> ReadS [a] -> ReadS [NonEmpty a] #

liftReadPrec :: ReadPrec a -> ReadPrec [a] -> ReadPrec (NonEmpty a) #

liftReadListPrec :: ReadPrec a -> ReadPrec [a] -> ReadPrec [NonEmpty a] #

Show1 NonEmpty

Since: base-4.10.0.0

Instance details

Defined in Data.Functor.Classes

Methods

liftShowsPrec :: (Int -> a -> ShowS) -> ([a] -> ShowS) -> Int -> NonEmpty a -> ShowS #

liftShowList :: (Int -> a -> ShowS) -> ([a] -> ShowS) -> [NonEmpty a] -> ShowS #

NFData1 NonEmpty

Since: deepseq-1.4.3.0

Instance details

Defined in Control.DeepSeq

Methods

liftRnf :: (a -> ()) -> NonEmpty a -> () #

Lift a => Lift (NonEmpty a :: Type)

Since: template-haskell-2.15.0.0

Instance details

Defined in Language.Haskell.TH.Syntax

Methods

lift :: NonEmpty a -> Q Exp #

liftTyped :: NonEmpty a -> Q (TExp (NonEmpty a)) #

IsList (NonEmpty a)

Since: base-4.9.0.0

Instance details

Defined in GHC.Exts

Associated Types

type Item (NonEmpty a) #

Methods

fromList :: [Item (NonEmpty a)] -> NonEmpty a #

fromListN :: Int -> [Item (NonEmpty a)] -> NonEmpty a #

toList :: NonEmpty a -> [Item (NonEmpty a)] #

Eq a => Eq (NonEmpty a)

Since: base-4.9.0.0

Instance details

Defined in GHC.Base

Methods

(==) :: NonEmpty a -> NonEmpty a -> Bool #

(/=) :: NonEmpty a -> NonEmpty a -> Bool #

Ord a => Ord (NonEmpty a)

Since: base-4.9.0.0

Instance details

Defined in GHC.Base

Methods

compare :: NonEmpty a -> NonEmpty a -> Ordering #

(<) :: NonEmpty a -> NonEmpty a -> Bool #

(<=) :: NonEmpty a -> NonEmpty a -> Bool #

(>) :: NonEmpty a -> NonEmpty a -> Bool #

(>=) :: NonEmpty a -> NonEmpty a -> Bool #

max :: NonEmpty a -> NonEmpty a -> NonEmpty a #

min :: NonEmpty a -> NonEmpty a -> NonEmpty a #

Read a => Read (NonEmpty a)

Since: base-4.11.0.0

Instance details

Defined in GHC.Read

Show a => Show (NonEmpty a)

Since: base-4.11.0.0

Instance details

Defined in GHC.Show

Methods

showsPrec :: Int -> NonEmpty a -> ShowS #

show :: NonEmpty a -> String #

showList :: [NonEmpty a] -> ShowS #

Generic (NonEmpty a)

Since: base-4.6.0.0

Instance details

Defined in GHC.Generics

Associated Types

type Rep (NonEmpty a) :: Type -> Type #

Methods

from :: NonEmpty a -> Rep (NonEmpty a) x #

to :: Rep (NonEmpty a) x -> NonEmpty a #

Semigroup (NonEmpty a)

Since: base-4.9.0.0

Instance details

Defined in GHC.Base

Methods

(<>) :: NonEmpty a -> NonEmpty a -> NonEmpty a #

sconcat :: NonEmpty (NonEmpty a) -> NonEmpty a #

stimes :: Integral b => b -> NonEmpty a -> NonEmpty a #

NFData a => NFData (NonEmpty a)

Since: deepseq-1.4.2.0

Instance details

Defined in Control.DeepSeq

Methods

rnf :: NonEmpty a -> () #

Generic1 NonEmpty

Since: base-4.6.0.0

Instance details

Defined in GHC.Generics

Associated Types

type Rep1 NonEmpty :: k -> Type #

Methods

from1 :: forall (a :: k). NonEmpty a -> Rep1 NonEmpty a #

to1 :: forall (a :: k). Rep1 NonEmpty a -> NonEmpty a #

type Rep (NonEmpty a) 
Instance details

Defined in GHC.Generics

type Item (NonEmpty a) 
Instance details

Defined in GHC.Exts

type Item (NonEmpty a) = a
type Rep1 NonEmpty 
Instance details

Defined in GHC.Generics

calculateRGB :: Monad m => (Rational -> c -> c -> c) -> LocalTime -> GammaLinearT c m c Source #