5 Feb 03:27
Re: Why is $ right associative instead of left associative?
Ben Rudiak-Gould <Benjamin.Rudiak-Gould <at> cl.cam.ac.uk>
2006-02-05 02:27:45 GMT
2006-02-05 02:27:45 GMT
No one has mentioned yet that it's easy to change the associativity of $
within a module in Haskell 98:
import Prelude hiding (($))
infixl 0 $
f$x = f x
or, for the purists,
import Prelude hiding (($))
import qualified Prelude (($))
infixl 0 $
($) = (Prelude.$)
-- Ben
RSS Feed