summaryrefslogtreecommitdiffhomepage
path: root/app/Main.hs
diff options
context:
space:
mode:
authorjao <jao@gnu.org>2018-11-26 00:49:33 +0000
committerjao <jao@gnu.org>2018-11-26 00:49:33 +0000
commitc2a125cefb0bf41140db398248a5b8523b46a42e (patch)
treeb45b9e604aa581cfb368ccea4025e07ed31ebca8 /app/Main.hs
parent24c84e47177b6ebbe3df99db53220def6c0951ec (diff)
downloadxmobar-c2a125cefb0bf41140db398248a5b8523b46a42e.tar.gz
xmobar-c2a125cefb0bf41140db398248a5b8523b46a42e.tar.bz2
Xmobar.Config.Parse
Diffstat (limited to 'app/Main.hs')
-rw-r--r--app/Main.hs6
1 files changed, 3 insertions, 3 deletions
diff --git a/app/Main.hs b/app/Main.hs
index c37fb89..35bff7d 100644
--- a/app/Main.hs
+++ b/app/Main.hs
@@ -27,7 +27,7 @@ import Text.Read (readMaybe)
import Xmobar
import Paths_xmobar (version)
-import Configuration (readConfig, readDefaultConfig)
+import Configuration as C (readConfig, readDefaultConfig)
-- $main
@@ -36,8 +36,8 @@ main :: IO ()
main = do
(o,file) <- getArgs >>= getOpts
(c,defaultings) <- case file of
- [cfgfile] -> readConfig cfgfile usage
- _ -> readDefaultConfig usage
+ [cfgfile] -> C.readConfig cfgfile usage
+ _ -> C.readDefaultConfig usage
unless (null defaultings) $ putStrLn $
"Fields missing from config defaulted: " ++ intercalate "," defaultings
doOpts c o >>= xmobar