monky-2.2.0.0: A system state collecting library and application

Maintainerongy
Stabilitytesting
Portabilitylinux
Safe HaskellNone
LanguageHaskell2010

Monky.Examples.Prepend

Description

The *PrependAppend functions can be used instead of pollPackevtPack. If you want to chain a prepended module into something else, use the raw Constructors. packPrepend [MonkyPlain CPU] 1 $ getCPUHandle ScalingCur pack 1 $ Prep [MonkyPlain CPU] $ getCPUHandle ScalingCur

Synopsis

Documentation

data PrepHandle Source #

The handle used by this module, contains underlying module and string

Constructors

PollModule m => Prep [MonkyOut] m 

data PostHandle Source #

The handle used by this module, contains underlying module and string

Constructors

PollModule m => Post [MonkyOut] m 

packPrepend Source #

Arguments

:: PollModule a 
=> [MonkyOut]

The String to prepend

-> Int

The refresh rate for this module

-> IO a

The function to get the module

-> IO Modules

The returned handle

Create a module that should be prepended with some string

This allows you to prepend an instance of a module with a fixed String.

For usage look at pollPack.

packAppend Source #

Arguments

:: PollModule a 
=> [MonkyOut]

The String to prepend

-> Int

The refresh rate for this module

-> IO a

The function to get the module

-> IO Modules

The returned handle

Create a module that should be appended with some string

This allows you to append an instance of a module with a fixed String.

For usage look at pollPack.

data EvtPrepHandle Source #

EvtModule prepend type

Constructors

EvtModule m => EvtPrep [MonkyOut] m 

Instances

data EvtPostHandle Source #

EvtModule append type

Constructors

EvtModule m => EvtPost [MonkyOut] m 

Instances