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

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.)

Please write out the associativity proofs!
On Mon, Sep 17, 2018, 1:38 AM Dannyu NDos
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@haskell.org http://mail.haskell.org/cgi-bin/mailman/listinfo/libraries

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
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@haskell.org http://mail.haskell.org/cgi-bin/mailman/listinfo/libraries
participants (3)
-
Dannyu NDos
-
David Feuer
-
Lennart Augustsson