Fwd: [Haskell-cafe] Defining methods generically for a class

---------- Forwarded message ----------
From: Jeff Heard
On Thu, Jan 8, 2009 at 6:04 PM, Jeff Heard
wrote: ... How do I declare all Regions to be Eqs without putting it in the class body (since I define a function over all Regions that is independent of datatype that is an instance of Region)?
Would this be a solution?
class Eq a => Region a where ...
Cristiano
participants (1)
-
Jeff Heard