Permalink
Browse files

documentation patch: mention PostfixOperators

  • Loading branch information...
1 parent 6d013c4 commit a738ac11455ea7b46f4dd15db0546178a83a5b3e @dmwit dmwit committed Dec 10, 2011
Showing with 9 additions and 0 deletions.
  1. +9 −0 XMonad/Util/Run.hs
View
@@ -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)

0 comments on commit a738ac1

Please sign in to comment.