| Portability | linux |
|---|---|
| Stability | testing |
| Maintainer | ongy |
| Safe Haskell | None |
Monky.Examples.Prepend
Description
- data PrepHandle = forall m . PollModule m => Prep [MonkyOut] m
- data PostHandle = forall m . PollModule m => Post [MonkyOut] m
- packPrepend :: PollModule a => [MonkyOut] -> Int -> IO a -> IO Modules
- packAppend :: PollModule a => [MonkyOut] -> Int -> IO a -> IO Modules
- data EvtPrepHandle = forall m . EvtModule m => EvtPrep [MonkyOut] m
- data EvtPostHandle = forall m . EvtModule m => EvtPost [MonkyOut] m
- evtPrepend :: EvtModule a => [MonkyOut] -> IO a -> IO Modules
- evtAppend :: EvtModule a => [MonkyOut] -> IO a -> IO Modules
Documentation
data PrepHandle Source
The handle used by this module, contains underlying module and string
Constructors
| forall m . PollModule m => Prep [MonkyOut] m |
Instances
data PostHandle Source
The handle used by this module, contains underlying module and string
Constructors
| forall m . PollModule m => Post [MonkyOut] m |
Instances
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.
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.
evtPrepend :: EvtModule a => [MonkyOut] -> IO a -> IO ModulesSource
packPrepend for EvtModules