[Haskell-cafe] Precedence of plus and bit-wise-and

Brandon Allbery allbery.b at gmail.com
Wed Aug 16 02:03:57 UTC 2017


On Tue, Aug 15, 2017 at 8:07 PM, Levent Erkok <erkokl at 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 at gmail.com                                  ballbery at sinenomine.net
unix, openafs, kerberos, infrastructure, xmonad        http://sinenomine.net
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://mail.haskell.org/pipermail/haskell-cafe/attachments/20170815/d1f3771b/attachment.html>


More information about the Haskell-Cafe mailing list