summaryrefslogtreecommitdiffhomepage
path: root/Runnable.hs
diff options
context:
space:
mode:
authorAndrea Rossato <andrea.rossato@ing.unitn.it>2008-02-16 08:58:42 +0100
committerAndrea Rossato <andrea.rossato@ing.unitn.it>2008-02-16 08:58:42 +0100
commit814e41cf2675fa9d4efa50c220f060db7a78eaec (patch)
treebc269f9dac2cc018c2dc684d14b55f0a784defd0 /Runnable.hs
parent86c839b6ef4eda5ef13514227c00248e1929cc45 (diff)
downloadxmobar-814e41cf2675fa9d4efa50c220f060db7a78eaec.tar.gz
xmobar-814e41cf2675fa9d4efa50c220f060db7a78eaec.tar.bz2
trailing spaces
darcs-hash:20080216075842-d6583-d8257a90ec69a84ddec872dabeb82d88dce9bc49.gz
Diffstat (limited to 'Runnable.hs')
-rw-r--r--Runnable.hs12
1 files changed, 6 insertions, 6 deletions
diff --git a/Runnable.hs b/Runnable.hs
index f1bb16b..b6ed004 100644
--- a/Runnable.hs
+++ b/Runnable.hs
@@ -4,16 +4,16 @@
-- Module : Xmobar.Runnable
-- Copyright : (c) Andrea Rossato
-- License : BSD-style (see LICENSE)
---
+--
-- Maintainer : Andrea Rossato <andrea.rossato@unibz.it>
-- Stability : unstable
-- Portability : unportable
--
-- The existential type to store the list of commands to be executed.
-- I must thank Claus Reinke for the help in understanding the mysteries of
--- reading existential types. The Read instance of Runnable must be credited to
--- him.
---
+-- reading existential types. The Read instance of Runnable must be credited to
+-- him.
+--
-- See here:
-- http:\/\/www.haskell.org\/pipermail\/haskell-cafe\/2007-July\/028227.html
--
@@ -43,10 +43,10 @@ class ReadAsAnyOf ts ex where
-- | Reads an existential type as any of hidden types ts
readAsAnyOf :: ts -> ReadPrec ex
-instance ReadAsAnyOf () ex where
+instance ReadAsAnyOf () ex where
readAsAnyOf ~() = mzero
-instance (Show t, Read t, Exec t, ReadAsAnyOf ts Runnable) => ReadAsAnyOf (t,ts) Runnable where
+instance (Show t, 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)) }