monky-2.2.1.0: A system state collecting library and application

Maintainerongy
Stabilitytesting
PortabilityLinux
Safe HaskellNone
LanguageHaskell2010

Monky.Outputs.Show

Description

Can be used to store output or transmit in a human readable form.

Simple receiver can be:

import System.IO
import Monky.Modules
import Monky.Outputs.Dzen2

main :: IO ()
main = do
  out <- getDzenOut 20 "/home/ongy/.monky/xbm"
  input <- getContents
  mapM_ (doLine out . read) $ lines input

Used with:

monky -d \/tmp\/monky | .\/Test | dzen2 -w 1280 -y 20

Synopsis

Documentation

getShowOut :: IO ShowOutput Source #

Get an output handle for show formatting

data ShowOutput Source #

The output handle for using show instance

Constructors

ShowOutput 

Instances