Libor Skarvada, you wrote:
> 
> > > infixr 0 `foo`
> > > infixr 0 `bar`
> 
> I do not see any problem here.
[...]
> But if we mix the associativity like
>  infixl 0 `foo`
>  infixr 0 `bar`
> then the parsing of the expression above is not unique, and eg. Hugs
> complains
>  ERROR "tmp.hs" (line 7): Ambiguous use of operator "foo" with "bar"

Ah.  Thank you for reading my mind.

Now why can't ghc and Hugs do that? ;-) ;-)

Sorry about that.  (I really should think a bit harder before mailing
this list, lest I make a habit of looking really silly...)

-- 
Fergus Henderson <[EMAIL PROTECTED]>   |  "I have always known that the pursuit
WWW: <http://www.cs.mu.oz.au/~fjh>   |  of excellence is a lethal habit"
PGP: finger [EMAIL PROTECTED]         |     -- the last words of T. S. Garp.

Reply via email to