On Tue, Aug 15, 2017 at 8:07 PM, Levent Erkok <erkokl@gmail.com> wrote:
While I like Haskell's precedence better, this was a gotcha; and I wondered if this behavior is documented somewhere. I looked through the Haskell wiki, but couldn't find anything pertinent.

Documented in the Language Report, just as C's precedence is documented in the ANSI C standard (and, before that, the Language Report in the back of K&R).

https://www.haskell.org/onlinereport/haskell2010/haskellch4.html#x10-820061

--
brandon s allbery kf8nh                               sine nomine associates
allbery.b@gmail.com                                  ballbery@sinenomine.net
unix, openafs, kerberos, infrastructure, xmonad        http://sinenomine.net