summaryrefslogtreecommitdiffhomepage
path: root/Runnable.hs
diff options
context:
space:
mode:
authorAndrea Rossato <andrea.rossato@ing.unitn.it>2007-07-12 23:56:15 +0200
committerAndrea Rossato <andrea.rossato@ing.unitn.it>2007-07-12 23:56:15 +0200
commit20846e8dddb61eed64100b4f21b4b493b5005eac (patch)
tree602c5e36ec8bacf5c12082ff708a59e768fcc039 /Runnable.hs
parent1126dd15b8e25aa4d72cb8efc269abb2e1136481 (diff)
downloadxmobar-20846e8dddb61eed64100b4f21b4b493b5005eac.tar.gz
xmobar-20846e8dddb61eed64100b4f21b4b493b5005eac.tar.bz2
removed the Show instance requirement for plugins
darcs-hash:20070712215615-d6583-463ad3d9d1282fd1f129f34f405c66e0795962fd.gz
Diffstat (limited to 'Runnable.hs')
-rw-r--r--Runnable.hs6
1 files changed, 2 insertions, 4 deletions
diff --git a/Runnable.hs b/Runnable.hs
index 9191697..2f55e7f 100644
--- a/Runnable.hs
+++ b/Runnable.hs
@@ -26,10 +26,8 @@ import Text.ParserCombinators.ReadPrec
import Config (runnableTypes)
import Commands
-data Runnable = forall r . (Exec r,Show r, Read r) => Run r
+data Runnable = forall r . (Exec r, Read r) => Run r
-instance Show Runnable where
- show (Run a) = "Run " ++ show a
instance Exec Runnable where
run (Run a) = run a
@@ -46,7 +44,7 @@ class ReadAsAnyOf ts ex where
instance ReadAsAnyOf () ex where
readAsAnyOf ~() = mzero
-instance (Read t, Show t, Exec t, ReadAsAnyOf ts Runnable) => ReadAsAnyOf (t,ts) Runnable where
+instance (Read t, Exec t, ReadAsAnyOf ts Runnable) => ReadAsAnyOf (t,ts) Runnable where
readAsAnyOf ~(t,ts) = r t `mplus` readAsAnyOf ts
where r ty = do { m <- readPrec; return (Run (m `asTypeOf` ty)) }