On 19/07/2011, at 0:09, Patrick Browne <[email protected]> wrote:

> instance Bird Emperor where
> -- No fly method
>   walk x y = y
> 
> instance Penguin Emperor where
> -- How can I override the walk method in the instance Penguin?
> -- walk x y = x

Why would you want to override the walk method for Emperor?  It already has one 
due to being a Bird.  How could you possibly distinguish an Emperor walking as 
a Bird from an Emperor walking as a Penguin?  Why would it be desirable?

_______________________________________________
Haskell-Cafe mailing list
[email protected]
http://www.haskell.org/mailman/listinfo/haskell-cafe

Reply via email to