[xmonad] Issue 487 in xmonad: XMonad.Util.Run documentation is incorrect

codesite-noreply at google.com codesite-noreply at google.com
Sat Dec 10 03:52:44 CET 2011


Status: New
Owner: ----

New issue 487 by chris... at gmail.com: XMonad.Util.Run documentation is  
incorrect
http://code.google.com/p/xmonad/issues/detail?id=487

The documentation for XMonad.Util.Run.seconds includes this code as an  
example [1]:

     -- Use like:
     --
     -- > (5.5 `seconds`)

However, using the example gives this error in GHC 7.0.3:

     The operator `seconds' takes two arguments,
     but its type `Rational -> Int' has only one

This is because the Haskell Report [2] explicitly defines operator sections  
to only work with two argument functions. The corrected documentation  
(although less pretty) should be:

     -- Use like:
     --
     -- > seconds 5.5

[1]  
http://xmonad.org/xmonad-docs/xmonad-contrib/XMonad-Util-Run.html#v:seconds
[2]  
http://www.haskell.org/onlinereport/haskell2010/haskellch3.html#x8-300003.5




More information about the xmonad mailing list