[Haskell-cafe] Fractional/negative fixity?
nicolas.frisby at gmail.com
Tue Nov 7 17:25:23 EST 2006
I don't see how it's too complex. Isn't
prec ?? < $
(??) = whenOperator
exactly what you want to say?
Sure you can solve the problem with negative fixities, but that's less
expressive than the above (the total order is actually an
over-specification). You want ?? to bind more tightly than does $;
that's exactly what this approach would let you specify.
When conjuring a number less than 0, what makes -1 a more appropriate
choice than -2? There's really no answer to that question. Fractional
fixities make it even worse.
On 11/6/06, Bulat Ziganshin <bulat.ziganshin at gmail.com> wrote:
> Hello Henning,
> Monday, November 6, 2006, 1:27:54 PM, you wrote:
> >> print msg `on` mode==debug
> >> but failed because my code frequently contains '$' and there is no way
> >> to define operation with a lower precedence
> > This could be solved by the solutions proposed in this thread:
> > http://www.haskell.org/pipermail/haskell-cafe/2006-October/018923.html
> it's too complex for my purposes. -1 priority is enough
> Best regards,
> Bulat mailto:Bulat.Ziganshin at gmail.com
> Haskell-Cafe mailing list
> Haskell-Cafe at haskell.org
More information about the Haskell-Cafe