diff options
Diffstat (limited to '')
-rw-r--r-- | XMonad/Util/Run.hs | 9 |
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) |