
I don't see how it's too complex. Isn't
infixl ??
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.
Nick
On 11/6/06, Bulat Ziganshin
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@gmail.com
_______________________________________________ Haskell-Cafe mailing list Haskell-Cafe@haskell.org http://www.haskell.org/mailman/listinfo/haskell-cafe