Hello,
I was thinking that it could maybe be useful to allow duplicate instance
declarations, if the class has no methods. From my naive point of view, i
can not see problems, scince there are no conflicting methods to choose
from. But the following program fails to be compiled by ghc-6.6:
{-#
Did you try to compile with -fallow-overlapping-instances
On 3/6/07, mm [EMAIL PROTECTED] wrote:
Hello,
I was thinking that it could maybe be useful to allow duplicate instance
declarations, if the class has no methods. From my naive point of view, i
can not see problems, scince there are no
On Tue, Mar 06, 2007 at 08:49:25PM +0100, Alfonso Acosta wrote:
Did you try to compile with -fallow-overlapping-instances
Same effect:
ghc -fallow-overlapping-instances --make test5.lhs
[1 of 1] Compiling Main ( test5.lhs, test5.o )
test5.lhs:22:1:
Duplicate instance
Alfonso Acosta:
Did you try to compile with -fallow-overlapping-instances
mm [EMAIL PROTECTED]:
Same effect:
ghc -fallow-overlapping-instances --make test5.lhs
[1 of 1] Compiling Main ( test5.lhs, test5.o )
test5.lhs:22:1:
Duplicate instance declarations:
instance