public inbox for gentoo-commits@lists.gentoo.org
 help / color / mirror / Atom feed
* [gentoo-commits] gentoo-x86 commit in x11-misc/xmobar/files: xmobar-0.14-stm-2.3.patch
@ 2012-04-13 21:33 Sergei Trofimovich (slyfox)
  0 siblings, 0 replies; only message in thread
From: Sergei Trofimovich (slyfox) @ 2012-04-13 21:33 UTC (permalink / raw
  To: gentoo-commits

slyfox      12/04/13 21:33:35

  Added:                xmobar-0.14-stm-2.3.patch
  Log:
  Version bump. Requested by fox in bug #411477.
  
  (Portage version: 2.2.0_alpha96_p5/cvs/Linux x86_64)

Revision  Changes    Path
1.1                  x11-misc/xmobar/files/xmobar-0.14-stm-2.3.patch

file : http://sources.gentoo.org/viewvc.cgi/gentoo-x86/x11-misc/xmobar/files/xmobar-0.14-stm-2.3.patch?rev=1.1&view=markup
plain: http://sources.gentoo.org/viewvc.cgi/gentoo-x86/x11-misc/xmobar/files/xmobar-0.14-stm-2.3.patch?rev=1.1&content-type=text/plain

Index: xmobar-0.14-stm-2.3.patch
===================================================================
diff --git a/src/Plugins/Mail.hs b/src/Plugins/Mail.hs
index 58431ce..2d0be37 100644
--- a/src/Plugins/Mail.hs
+++ b/src/Plugins/Mail.hs
@@ -49,18 +49,18 @@ instance Exec Mail where
         forM_ (zip ds vs) $ \(d, v) -> do
             s <- fmap (S.fromList . filter (not . isPrefixOf "."))
                     $ getDirectoryContents d
-            atomically $ modifyTVar v (S.union s)
+            atomically $ modifyTVarxm v (S.union s)
 
         changeLoop (mapM (fmap S.size . readTVar) vs) $ \ns ->
             cb . unwords $ [m ++ ":" ++  show n
                                     | (m, n) <- zip ts ns
                                     , n /= 0 ]
 
-modifyTVar :: TVar a -> (a -> a) -> STM ()
-modifyTVar v f = readTVar v >>= writeTVar v . f
+modifyTVarxm :: TVar a -> (a -> a) -> STM ()
+modifyTVarxm v f = readTVar v >>= writeTVar v . f
 
 handle :: TVar (Set String) -> Event -> IO ()
-handle v e = atomically $ modifyTVar v $ case e of
+handle v e = atomically $ modifyTVarxm v $ case e of
     Created  {} -> create
     MovedIn  {} -> create
     Deleted  {} -> delete
diff --git a/src/Plugins/Monitors/MPD.hs b/src/Plugins/Monitors/MPD.hs
index 60c3e48..757c1ca 100644
--- a/src/Plugins/Monitors/MPD.hs
+++ b/src/Plugins/Monitors/MPD.hs
@@ -102,5 +102,5 @@ showTime t = int2str minutes ++ ":" ++ int2str seconds
   where minutes = t `div` 60
         seconds = t `mod` 60
 
-int2str :: (Num a, Ord a) => a -> String
+int2str :: (Num a, Ord a, Show a) => a -> String
 int2str x = if x < 10 then '0':sx else sx where sx = show x






^ permalink raw reply related	[flat|nested] only message in thread

only message in thread, other threads:[~2012-04-13 21:33 UTC | newest]

Thread overview: (only message) (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2012-04-13 21:33 [gentoo-commits] gentoo-x86 commit in x11-misc/xmobar/files: xmobar-0.14-stm-2.3.patch Sergei Trofimovich (slyfox)

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox