[Haskell-cafe] Desugaring of infix operators is (always?) the wrong way round

Brian Hulley brianh at metamilk.com
Tue Sep 25 14:18:50 EDT 2007


Brian Hulley wrote:
> I'm wondering if anyone can shed light on the reason why
>
>    x # y
>
> gets desugared to
>
>   (#) x y
>
> and not
>
>   (#) y x
>

> Can anyone think of an example where the current desugaring of infix 
> arguments gives the correct order when the function is used in a 
> postfix application? (apart from commutative functions of course!)
>
Sorry I meant to write "*prefix* application"


More information about the Haskell-Cafe mailing list