bludigon-0.1.0.1: Configurable blue light filter
Safe HaskellNone
LanguageHaskell2010

Bludigon.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 Bludigon.Control

Associated Types

type ControlConstraint IO a Source #

Methods

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

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

Defined in Bludigon.Control.Print

Associated Types

type ControlConstraint (ControlPrintT m) a Source #

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

Defined in Bludigon.Control.Wait

Associated Types

type ControlConstraint (ControlWaitT m) a Source #