[Haskell-cafe] need help with understanding expression
Albert Y. C. Lai
trebla at vex.net
Fri Nov 16 20:53:38 CET 2012
On 12-11-16 02:10 AM, Daryoush Mehrtash wrote:
> I am having hard time understanding how removing the outer parenthesis in
>
> (max.(+1)) 2 2
>
> to
>
> max.(+1) 2 2
>
> changes the meaning of expression.
I recommend http://bm380.user.srcf.net/prettyparsetree.cgi for
discovering the correct parse.
Specifically,
max.(+1) 2 2
= { use uniform spacing to un-presume }
max . (+1) 2 2
= { . is lower than application }
max . ((+1) 2 2)
etc.
More information about the Haskell-Cafe
mailing list