summaryrefslogtreecommitdiffhomepage
diff options
context:
space:
mode:
authorAndrea Rossato <andrea.rossato@ing.unitn.it>2007-09-27 19:36:51 +0200
committerAndrea Rossato <andrea.rossato@ing.unitn.it>2007-09-27 19:36:51 +0200
commit341d5f106342a4d2880c1d5fa6abcdcbc7eaceba (patch)
treeee42a7014d6f5cdeb460923437e0108aa06810a9
parent461c490afd909e452ad8f641b1bc651cab438016 (diff)
downloadxmobar-341d5f106342a4d2880c1d5fa6abcdcbc7eaceba.tar.gz
xmobar-341d5f106342a4d2880c1d5fa6abcdcbc7eaceba.tar.bz2
HelloWorld: updated to recent API changes
darcs-hash:20070927173651-d6583-498f92a410459510b38e53dfbd582baf04bf0fd1.gz
-rw-r--r--Plugins/HelloWorld.hs6
1 files changed, 3 insertions, 3 deletions
diff --git a/Plugins/HelloWorld.hs b/Plugins/HelloWorld.hs
index c3a6a69..5c0a0b7 100644
--- a/Plugins/HelloWorld.hs
+++ b/Plugins/HelloWorld.hs
@@ -17,9 +17,9 @@ module Plugins.HelloWorld where
import Plugins
data HelloWorld = HelloWorld
- deriving (Read)
+ deriving (Read, Show)
instance Exec HelloWorld where
- run HelloWorld = return "<fc=red>Hello World!!</fc>"
- rate HelloWorld = 1000
+ rate HelloWorld = 0
alias HelloWorld = "helloWorld"
+ start HelloWorld cb = cb "<fc=red>Hello World!!</fc>"