summaryrefslogtreecommitdiffhomepage
path: root/src/Commands.hs
diff options
context:
space:
mode:
authorJochen Keil <jochen.keil@gmail.com>2012-08-09 09:43:49 +0200
committerJochen Keil <jochen.keil@gmail.com>2012-08-09 10:47:09 +0200
commit58427c76c892334522dfb28ea2d2a858469fc65a (patch)
tree4ed2294e0a0d7254fbeee5bbd7c53e35f675cd8c /src/Commands.hs
parentcc77b5a7bc8309f694fd0aed4110b92f16316c0b (diff)
downloadxmobar-58427c76c892334522dfb28ea2d2a858469fc65a.tar.gz
xmobar-58427c76c892334522dfb28ea2d2a858469fc65a.tar.bz2
Cosmetic surgery
Realign methods, remove unnecessary imports and remove clutter
Diffstat (limited to 'src/Commands.hs')
-rw-r--r--src/Commands.hs16
1 files changed, 8 insertions, 8 deletions
diff --git a/src/Commands.hs b/src/Commands.hs
index f31c53c..b501022 100644
--- a/src/Commands.hs
+++ b/src/Commands.hs
@@ -35,14 +35,14 @@ import Signal
import XUtil
class Show e => Exec e where
- alias :: e -> String
- alias e = takeWhile (not . isSpace) $ show e
- rate :: e -> Int
- rate _ = 10
- run :: e -> IO String
- run _ = return ""
- start :: e -> (String -> IO ()) -> IO ()
- start e cb = go
+ alias :: e -> String
+ alias e = takeWhile (not . isSpace) $ show e
+ rate :: e -> Int
+ rate _ = 10
+ run :: e -> IO String
+ run _ = return ""
+ start :: e -> (String -> IO ()) -> IO ()
+ start e cb = go
where go = run e >>= cb >> tenthSeconds (rate e) >> go
trigger :: e -> (Maybe SignalType -> IO ()) -> IO ()
trigger _ sh = sh Nothing