diff options
author | Andrea Rossato <andrea.rossato@ing.unitn.it> | 2007-11-04 12:17:31 +0100 |
---|---|---|
committer | Andrea Rossato <andrea.rossato@ing.unitn.it> | 2007-11-04 12:17:31 +0100 |
commit | 0a41d22784ec484c61e3b1a76cc83809f39e0ab6 (patch) | |
tree | 1b9ef05758f9ce3baf84097a8e27bf33ae0b5f2c | |
parent | 91eca1f043e051b64d73e49ed94366d960fbebab (diff) | |
download | xmobar-0a41d22784ec484c61e3b1a76cc83809f39e0ab6.tar.gz xmobar-0a41d22784ec484c61e3b1a76cc83809f39e0ab6.tar.bz2 |
Added an argument to Top and Bottom type contructors
darcs-hash:20071104111731-d6583-25b1c766ca60777fb6fa374947a7b81c8d3726d5.gz
-rw-r--r-- | Config.hs | 7 |
1 files changed, 4 insertions, 3 deletions
@@ -15,7 +15,7 @@ module Config ( -- * Configuration -- $config Config (..) - , XPosition (..) + , XPosition (..), Width (..) , defaultConfig , runnableTypes ) where @@ -44,7 +44,8 @@ data Config = , template :: String -- ^ The output template } deriving (Read) -data XPosition = Top | Bottom | Static {xpos, ypos, width, height :: Int} deriving ( Read, Eq ) +data XPosition = Top Width | Bottom Width | Static {xpos, ypos, width, height :: Int} deriving ( Read, Eq ) +data Width = A | L Int | R Int | C Int deriving ( Read, Eq ) -- | The default configuration values defaultConfig :: Config @@ -52,7 +53,7 @@ defaultConfig = Config { font = "-misc-fixed-*-*-*-*-10-*-*-*-*-*-*-*" , bgColor = "#000000" , fgColor = "#BFBFBF" - , position = Top + , position = Top A , commands = [] , sepChar = "%" , alignSep = "}{" |