Redefining methods in a subCLASS

14 Mar
2003
14 Mar
'03
6:23 a.m.
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
8103
Age (days ago)
8103
Last active (days ago)
0 comments
1 participants
participants (1)
-
Oleg