[Haskell-cafe] Fractional/negative fixity?

Henning Thielemann haskell at henning-thielemann.de
Wed Nov 8 08:36:22 EST 2006


On Wed, 8 Nov 2006, Bulat Ziganshin wrote:

> Hello Nicolas,
> 
> Wednesday, November 8, 2006, 1:25:23 AM, you wrote:
> 
> >   prec ?? < $
> > over-specification). You want ?? to bind more tightly than does $;
> > that's exactly what this approach would let you specify.
> 
> and how then compiler will guess that is relational priority of this
> operator comparing to '$!' ? :)

(What might the smiley mean?)

It could not guess it, and this is good! However, if in the Prelude it is 
defined, that ($) and ($!) have the same precedence, then the 
compiler could derive automatically that prec ?? < $!.


More information about the Haskell-prime mailing list