[Haskell-cafe] Eq Type Class: Overloading (==)

Tom Hawkins tom at confluent.org
Fri Sep 16 22:59:05 EDT 2005


Is it possible to overload (==) to a type other than a -> a -> Bool?

I have an abstract datatype that somewhat behaves like a C integer: a 
comparison returns a boolean represented as the same datatype:

(==) :: my_type -> my_type -> my_type

Thanks for any help!


More information about the Haskell-Cafe mailing list