I have a data type called Praat
. I want Praat
be an instance of Eq
, so two Praat
are equal if and only if mx
are equal. How to do it?
This is how I try to determine the instance, but it does not work.
-- I want to make Praat instance of Eq so that two Praat are equal -- when their respective `mx` are equal instance Eq Praat where mx :: (Praat k)->Int (mx k) == (mx k) = True _ == _ = False
Eddy freeman
source share