aboutsummaryrefslogtreecommitdiffstats
path: root/XMonad
diff options
context:
space:
mode:
authorDaniel Wagner <daniel@wagner-home.com>2011-12-11 00:48:20 +0100
committerDaniel Wagner <daniel@wagner-home.com>2011-12-11 00:48:20 +0100
commit08a0388b56d0d6a3a4fe9537d2105a57229dff47 (patch)
treef8991414d48aaef76067fabc2e7034aabf525b4e /XMonad
parent8e4cf4b10bc61138c0342fdf70479630ab7fdb9b (diff)
downloadXMonadContrib-08a0388b56d0d6a3a4fe9537d2105a57229dff47.tar.gz
XMonadContrib-08a0388b56d0d6a3a4fe9537d2105a57229dff47.tar.xz
XMonadContrib-08a0388b56d0d6a3a4fe9537d2105a57229dff47.zip
documentation patch: mention PostfixOperators
Ignore-this: 20a05b1f396f18a742346d6e3daea9a8 darcs-hash:20111210234820-76d51-9e61d010d8e3f8cc477e4db4ec41f0985c588233.gz
Diffstat (limited to 'XMonad')
-rw-r--r--XMonad/Util/Run.hs9
1 files changed, 9 insertions, 0 deletions
diff --git a/XMonad/Util/Run.hs b/XMonad/Util/Run.hs
index 34c9b5e..796193d 100644
--- a/XMonad/Util/Run.hs
+++ b/XMonad/Util/Run.hs
@@ -86,6 +86,15 @@ runProcessWithInputAndWait cmd args input timeout = io $ do
-- Use like:
--
-- > (5.5 `seconds`)
+--
+-- In GHC 7 and later, you must either enable the PostfixOperators extension
+-- (by adding
+--
+-- > {-# LANGUAGE PostfixOperators #-}
+--
+-- to the top of your file) or use seconds in prefix form:
+--
+-- > 5.5 seconds
seconds :: Rational -> Int
seconds = fromEnum . (* 1000000)