Trying to create a base class from which I can get different types. What happened to the following?
class (Eq a) => MyClass a
data Alpha = Alpha
instance MyClass Alpha where
Alpha == Alpha = True
I get an error message:
test.hs:5:10: `==' is not a (visible) method of class `MyClass'
Failed, modules loaded: none.
source
share