
27 Sep
2014
27 Sep
'14
5:13 a.m.
On Fri, Sep 26, 2014 at 11:38:03PM -0400, Carter Schonwald wrote:
For anything to be a Monoid (or any type class with laws), you implicitly have a definition of equivalence you want your laws to use. And for many classes, those laws are using an equivalence not definable using Eq. A good example Is monad! You can not define Eq instances for arbitrary a-> m b. We can still define and talk about lawful monads.
Definable in Haskell or not, this supposed fuzzy equality for Double won't be transitive will it? It sounds like it will just raise another problem. Tom