From 08a0388b56d0d6a3a4fe9537d2105a57229dff47 Mon Sep 17 00:00:00 2001 From: Daniel Wagner Date: Sun, 11 Dec 2011 00:48:20 +0100 Subject: documentation patch: mention PostfixOperators Ignore-this: 20a05b1f396f18a742346d6e3daea9a8 darcs-hash:20111210234820-76d51-9e61d010d8e3f8cc477e4db4ec41f0985c588233.gz --- XMonad/Util/Run.hs | 9 +++++++++ 1 file changed, 9 insertions(+) (limited to 'XMonad/Util/Run.hs') 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) -- cgit v1.2.3