Safe Haskell | None |
---|
- data ModifyHandle a
- getModifyHandle :: ([MonkyOut] -> [MonkyOut]) -> IO a -> IO (ModifyHandle a)
- data IOModifyHandle a
- getIOModifyHandle :: ([MonkyOut] -> IO [MonkyOut]) -> IO a -> IO (IOModifyHandle a)
- changeImage :: Char -> MonkyOut -> MonkyOut
Documentation
data ModifyHandle a Source
Handle for duing pure modification of module output
EvtModule a => EvtModule (ModifyHandle a) | |
PollModule a => PollModule (ModifyHandle a) |
getModifyHandle :: ([MonkyOut] -> [MonkyOut]) -> IO a -> IO (ModifyHandle a)Source
Get a handle to purely modify another modules output
data IOModifyHandle a Source
Handle for modifying output in IO monad
EvtModule a => EvtModule (IOModifyHandle a) | |
PollModule a => PollModule (IOModifyHandle a) |
getIOModifyHandle :: ([MonkyOut] -> IO [MonkyOut]) -> IO a -> IO (IOModifyHandle a)Source
Get a handle that can modify another handles output in the IO monad
changeImage :: Char -> MonkyOut -> MonkyOutSource
Change the replacemant char in an monky image (if your font doesn't support it), returns initial value if not an image