Hello Alberto,

Friday, October 24, 2008, 12:20:39 PM, you wrote:

 >>instance  R a => A a
 >>instance S a => A a 
>   
>  Duplicate instance declarations
>  Why?

because you may write in other module

instance R Int
instance S Int

if class A includes functions, it may be problematic to determine
which implementation (via R or via S) to use


-- 
Best regards,
 Bulat                            mailto:[EMAIL PROTECTED]

_______________________________________________
Haskell-Cafe mailing list
Haskell-Cafe@haskell.org
http://www.haskell.org/mailman/listinfo/haskell-cafe

Reply via email to