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

Lennart Augustsson lennart at
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> 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
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <>

More information about the Libraries mailing list