blucontrol-0.3.0.0: Configurable blue light filter
Safe HaskellNone
LanguageHaskell2010

Blucontrol.Control

Documentation

class MonadBaseControl IO m => MonadControl m where Source #

Associated Types

type ControlConstraint m a :: Constraint Source #

Give a constraint to allow doInbetween to handle a polymorphic argument. This is usfeul to allow arguments wrapped in monadic state StM from running MonadGamma and MonadRecolor.

Methods

doInbetween Source #

Arguments

:: ControlConstraint m a 
=> a

the returned value from the last call of recolor including monadic state

-> m ()

the side effect to be run inbetween recoloring

This function will be called after recoloring the screen.

Instances

Instances details
MonadControl IO Source # 
Instance details

Defined in Blucontrol.Control

Associated Types

type ControlConstraint IO a Source #

Methods

doInbetween :: ControlConstraint IO a => a -> IO () Source #

MonadBaseControl IO m => MonadControl (ControlCountT m) Source # 
Instance details

Defined in Blucontrol.Control.Count

Associated Types

type ControlConstraint (ControlCountT m) a Source #

MonadBaseControl IO m => MonadControl (ControlPrintT m) Source # 
Instance details

Defined in Blucontrol.Control.Print

Associated Types

type ControlConstraint (ControlPrintT m) a Source #

MonadBaseControl IO m => MonadControl (ControlWaitT m) Source # 
Instance details

Defined in Blucontrol.Control.Wait

Associated Types

type ControlConstraint (ControlWaitT m) a Source #

(MonadControl (t1 m), MonadControl (t2 (t1 m)), MonadTrans t2) => MonadControl (ControlConcatT t1 t2 m) Source # 
Instance details

Defined in Blucontrol.Control.Concat

Associated Types

type ControlConstraint (ControlConcatT t1 t2 m) a Source #

Methods

doInbetween :: ControlConstraint (ControlConcatT t1 t2 m) a => a -> ControlConcatT t1 t2 m () Source #