Re: [Haskell-cafe] Re: Why is $ right associative instead ofleftassociative?

2006-02-08 Thread Jan-Willem Maessen
On Feb 8, 2006, at 1:34 AM, Stefan Monnier wrote: The trouble with monad comprehensions was that it became far too easy to write ambiguous programs, even when you thought you were just working with lists. One solution was already suggested: to make the comprehension syntax be pure synta

[Haskell-cafe] Re: Why is $ right associative instead ofleftassociative?

2006-02-07 Thread Stefan Monnier
> The trouble with monad comprehensions was that it became far too easy to > write ambiguous programs, even when you thought you were just working with > lists. One solution was already suggested: to make the comprehension syntax be pure syntactic sugar whose semantics depends on the semantics of

Re: [Haskell-cafe] Re: Why is $ right associative instead ofleftassociative?

2006-02-05 Thread John Meacham
On Sun, Feb 05, 2006 at 06:50:57PM +, Ben Rudiak-Gould wrote: > Paul Hudak wrote: > >Minor point, perhaps, but I should mention that : is not special syntax > >-- it is a perfectly valid infix constructor. > > But Haskell 98 does treat it specially: you can't import Prelude hiding > ((:)), o

Re: [Haskell-cafe] Re: Why is $ right associative instead ofleftassociative?

2006-02-05 Thread Paul Hudak
Ben Rudiak-Gould wrote: Paul Hudak wrote: Minor point, perhaps, but I should mention that : is not special syntax -- it is a perfectly valid infix constructor. But Haskell 98 does treat it specially: you can't import Prelude hiding ((:)), or rebind it locally, or refer to it as Prelude.:. In

[Haskell-cafe] Re: Why is $ right associative instead ofleftassociative?

2006-02-05 Thread Ben Rudiak-Gould
Paul Hudak wrote: Minor point, perhaps, but I should mention that : is not special syntax -- it is a perfectly valid infix constructor. But Haskell 98 does treat it specially: you can't import Prelude hiding ((:)), or rebind it locally, or refer to it as Prelude.:. In fact I've always wondere