summaryrefslogtreecommitdiffhomepage
path: root/src/Xmobar.hs
diff options
context:
space:
mode:
authorjao <jao@gnu.org>2018-06-24 01:54:28 +0100
committerjao <jao@gnu.org>2018-06-24 01:54:28 +0100
commit741b803b943430a262ec36658b13830733e17b48 (patch)
treeda40a2aa66691e494e4c22cba24eb5d1dc0b71e7 /src/Xmobar.hs
parent9c5f9b26bc19975f2486a11941821089ee62562a (diff)
downloadxmobar-741b803b943430a262ec36658b13830733e17b48.tar.gz
xmobar-741b803b943430a262ec36658b13830733e17b48.tar.bz2
hlinting
Diffstat (limited to 'src/Xmobar.hs')
-rw-r--r--src/Xmobar.hs4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/Xmobar.hs b/src/Xmobar.hs
index c6e16a6..9c6c2c6 100644
--- a/src/Xmobar.hs
+++ b/src/Xmobar.hs
@@ -2,7 +2,7 @@
-----------------------------------------------------------------------------
-- |
-- Module : Xmobar
--- Copyright : (c) 2011, 2012, 2013, 2014, 2015, 2017 Jose Antonio Ortega Ruiz
+-- Copyright : (c) 2011, 2012, 2013, 2014, 2015, 2017, 2018 Jose Antonio Ortega Ruiz
-- (c) 2007 Andrea Rossato
-- License : BSD-style (see LICENSE)
--
@@ -245,7 +245,7 @@ startCommand sig (com,s,ss)
updateString :: Config -> TVar [String]
-> IO [[(Widget, String, Int, Maybe [Action])]]
updateString conf v = do
- s <- atomically $ readTVar v
+ s <- readTVarIO v
let l:c:r:_ = s ++ repeat ""
io $ mapM (parseString conf) [l, c, r]