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
_______________________________________________
Haskell mailing list
[EMAIL PROTECTED]
http://www.haskell.org/mailman/listinfo/haskell

Reply via email to