Add fixity for (==) and (/=)

Lennart Augustsson lennart at augustsson.net
Tue Sep 18 15:58:06 UTC 2018


The (==) and (/=) operators are non-associative on purpose.   Writing
x==y==z is much more likely to be a typo than a legitimate use case.  We
decided to make them non-associative, even though they are associative.
(Note that they have fixity already.)

On Sun, Sep 16, 2018 at 22:38 Dannyu NDos <ndospark320 at gmail.com> wrote:

> Given that they are instantized for `Bool`s, they are associative, so it
> seems approvable to give them a fixity.
>
> (Sidenote: For the monoid over (==) I suggested on last May, I stated that
> it determines if there is an even number of `True`s, but that's wrong. It
> determines if there is an odd number of `False`s.)
> _______________________________________________
> Libraries mailing list
> Libraries at haskell.org
> http://mail.haskell.org/cgi-bin/mailman/listinfo/libraries
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://mail.haskell.org/pipermail/libraries/attachments/20180918/7e155576/attachment.html>


More information about the Libraries mailing list