documentation patch: mention PostfixOperators

This commit is contained in:
Daniel Wagner
2011-12-10 23:48:20 +00:00
parent a1a578010c
commit 64efea4d0a

View File

@@ -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)