From 6c8658883e39c0692d188c22e5b148319247a8c1 Mon Sep 17 00:00:00 2001 From: Andrea Rossato Date: Thu, 12 Jul 2007 20:04:34 +0200 Subject: added a plugin example with the needed runtime configuration file darcs-hash:20070712180434-d6583-99f6807f0deb0141014593f27356a69e69305d0e.gz --- Plugins/HelloWorld.hs | 25 +++++++++++++++++++++++++ 1 file changed, 25 insertions(+) create mode 100644 Plugins/HelloWorld.hs (limited to 'Plugins/HelloWorld.hs') diff --git a/Plugins/HelloWorld.hs b/Plugins/HelloWorld.hs new file mode 100644 index 0000000..2b52506 --- /dev/null +++ b/Plugins/HelloWorld.hs @@ -0,0 +1,25 @@ +----------------------------------------------------------------------------- +-- | +-- Module : Plugins.HelloWorld +-- Copyright : (c) Andrea Rossato +-- License : BSD-style (see LICENSE) +-- +-- Maintainer : Andrea Rossato +-- Stability : unstable +-- Portability : unportable +-- +-- A plugin example for XMobar, a status bar for the Xmonad Window Manager +-- +----------------------------------------------------------------------------- + +module Plugins.HelloWorld where + +import Commands + +data Plugin = HelloWorld + deriving (Show, Read) + +instance Exec Plugin where + run HelloWorld = return "Hello World!!" + rate HelloWorld = 1000 + alias HelloWorld = "helloWorld" -- cgit v1.2.3