Redefining methods in a subCLASS

Oleg oleg_inconnu@myrealbox.com
Fri, 14 Mar 2003 06:23:41 -0500


Hi

Is it possible to redefine methods in a subclass (not an instance)? E.g. I get 
errors in

class (Show a) => Employee a where
  speak :: a -> [Char]
  speak x = "Employee: " ++ (show x)

class (Employee a) => Manager a where
  speak x = "Manager: " ++ (show x)

Thanks
Oleg