summaryrefslogtreecommitdiffhomepage
path: root/Config.hs
diff options
context:
space:
mode:
authorAndrea Rossato <andrea.rossato@ing.unitn.it>2008-04-29 14:59:53 +0200
committerAndrea Rossato <andrea.rossato@ing.unitn.it>2008-04-29 14:59:53 +0200
commit4b73d3043896c2d759a60894bdfdadbc10d93bf4 (patch)
tree5ff75f2b73efa0f590e04a9b693606c2b8499814 /Config.hs
parent661ba1eaf6f10dad7dcff79a326ebb5d22d012c6 (diff)
downloadxmobar-4b73d3043896c2d759a60894bdfdadbc10d93bf4.tar.gz
xmobar-4b73d3043896c2d759a60894bdfdadbc10d93bf4.tar.bz2
style, pointfree and trailing spaces0.9_release
darcs-hash:20080429125953-d6583-02a6653c15d3166ad264c45ec44082bdae30260e.gz
Diffstat (limited to 'Config.hs')
-rw-r--r--Config.hs25
1 files changed, 15 insertions, 10 deletions
diff --git a/Config.hs b/Config.hs
index a1e6a2b..9dbd9e0 100644
--- a/Config.hs
+++ b/Config.hs
@@ -12,13 +12,14 @@
--
-----------------------------------------------------------------------------
-module Config ( -- * Configuration
- -- $config
- Config (..)
- , XPosition (..), Align (..)
- , defaultConfig
- , runnableTypes
- ) where
+module Config
+ ( -- * Configuration
+ -- $config
+ Config (..)
+ , XPosition (..), Align (..)
+ , defaultConfig
+ , runnableTypes
+ ) where
import Commands
import {-# SOURCE #-} Runnable
@@ -44,7 +45,12 @@ data Config =
, template :: String -- ^ The output template
} deriving (Read)
-data XPosition = Top | TopW Align Int | Bottom | BottomW Align Int | Static {xpos, ypos, width, height :: Int} deriving ( Read, Eq )
+data XPosition = Top
+ | TopW Align Int
+ | Bottom
+ | BottomW Align Int
+ | Static {xpos, ypos, width, height :: Int}
+ deriving ( Read, Eq )
data Align = L | R | C deriving ( Read, Eq )
@@ -56,8 +62,7 @@ defaultConfig =
, fgColor = "#BFBFBF"
, position = Top
, commands = [ Run $ Date "%a %b %_d %Y * %H:%M:%S" "theDate" 10
- , Run StdinReader
- ]
+ , Run StdinReader]
, sepChar = "%"
, alignSep = "}{"
, template = "%StdinReader% }{ <fc=#00FF00>%uname%</fc> * <fc=#FF0000>%theDate%</fc>"