<div dir="ltr">In the "lens" package, this is (&) at infixl 1. In the "diagrams" package, this is (#) at infixl 8. You're certainly not the first to want this, but nobody can ever agree what it should be called or what fixity it should have. You can always just define it yourself.<br>

</div><div class="gmail_extra"><br clear="all"><div>-- Dan Burton</div>
<br><br><div class="gmail_quote">On Wed, Apr 16, 2014 at 3:25 PM, Alexey Muranov <span dir="ltr"><<a href="mailto:alexey.muranov@gmail.com" target="_blank">alexey.muranov@gmail.com</a>></span> wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">

Hello,<br>
<br>
i am completely new to Haskell, but i am somewhat fascinated by lambda-calculus and programming.<br>
<br>
For whatever it is worth, i would like to propose for discussion a syntax for "(flip ($))" operation in Haskell.<br>
<br>
I think that a good syntax would be "|^", for example:<br>
<br>
    square x = x * x<br>
    y = 3 |^ square             -- y == 9<br>
<br>
<br>
Explanation:<br>
<br>
* i would have suggested just ^, but it would conflict with number exponentiation,<br>
<br>
* it is rather common in mathematics to write function application in exponential notation:  x ^ f  instead of  f(x), especially if  f  is an automorphism of some structure,<br>
<br>
* (flip ($)) is exactly the exponentiation of Church numerals,<br>
<br>
* in "The calculi of lambda-conversion", Alonzo Church uses the "shorthand" notation "[N^M]" for "(MN)", where M and N are lambda-terms.<br>
<br>
* I am probably not the only person missing the ability to apply functions from the right:<br>
<a href="http://stackoverflow.com/questions/1457140/haskell-composition-vs-fs-pipe-forward-operator" target="_blank">http://stackoverflow.com/questions/1457140/haskell-composition-vs-fs-pipe-forward-operator</a><br>
<br>
Well, other notations i've thought of are "\^" and "~$".<br>
<br>
Alexey.<br>
_______________________________________________<br>
Haskell-Cafe mailing list<br>
<a href="mailto:Haskell-Cafe@haskell.org">Haskell-Cafe@haskell.org</a><br>
<a href="http://www.haskell.org/mailman/listinfo/haskell-cafe" target="_blank">http://www.haskell.org/mailman/listinfo/haskell-cafe</a><br>
</blockquote></div><br></div>