Compiler complains about duplicate instance declarations
Simon Peyton-Jones
simonpj at microsoft.com
Wed Feb 9 16:29:05 EST 2005
thanks for a well-done report. This bug is comprehensively fixed in
6.4. (You'll need to change the .hi-boot file to a hs-boot file;
details in the user manual). I've tested it on your example; works
fine.
SImon
| -----Original Message-----
| From: glasgow-haskell-bugs-bounces at haskell.org
[mailto:glasgow-haskell-bugs-
| bounces at haskell.org] On Behalf Of Volker Wysk
| Sent: 09 February 2005 19:06
| To: glasgow-haskell-bugs
| Subject: Compiler complains about duplicate instance declarations
|
| Hi
|
| I've attached a minimal example, which makes the compiler complain in
error
| about multiple instance declarations. Run "make" twice.
|
| ~/src/hsskripte/bugrep $ make
| ghc --make mtest.hs
| Chasing modules from: mtest.hs
| Compiling Schema ( ./Schema.hs, ./Schema.o )
| Compiling Datenbank ( ./Datenbank.hs, ./Datenbank.o )
| Compiling Main ( mtest.hs, mtest.o )
| Linking ...
|
| ~/src/hsskripte/bugrep $ make
| ghc --make mtest.hs
| Chasing modules from: mtest.hs
| Skipping Schema ( ./Schema.hs, ./Schema.o )
| Skipping Datenbank ( ./Datenbank.hs, ./Datenbank.o )
|
| Duplicate instance declarations:
| In module Datenbank: GHC.Base.Eq Datenbank.Praedikat
| In module Datenbank: GHC.Base.Eq Datenbank.Praedikat
|
| Duplicate instance declarations:
| In module Datenbank: GHC.Show.Show Datenbank.Praedikat
| In module Datenbank: GHC.Show.Show Datenbank.Praedikat
| make: *** [mtest] Fehler 1
|
| Greetings,
| Volker
More information about the Glasgow-haskell-bugs
mailing list