14 Mar
2003
14 Mar
'03
9:50 p.m.
Hi (Posted this to Haskell-Cafe 12 hours ago with no replies) 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
8568
Age (days ago)
8568
Last active (days ago)
0 comments
1 participants
participants (1)
-
Oleg