Duplicate instance declarations of a methodless class

2007-03-06 Thread mm
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: {-#

Re: Duplicate instance declarations of a methodless class

2007-03-06 Thread Alfonso Acosta
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

Re: Duplicate instance declarations of a methodless class

2007-03-06 Thread mm
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

Re: Duplicate instance declarations of a methodless class

2007-03-06 Thread Matthew Brecknell
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