Compiler complains about duplicate instance declarations
Volker Wysk
post at volker-wysk.de
Wed Feb 9 14:05:51 EST 2005
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
-------------- next part --------------
A non-text attachment was scrubbed...
Name: bugrep.tar.gz
Type: application/x-tgz
Size: 528 bytes
Desc: not available
Url : http://www.haskell.org/pipermail/glasgow-haskell-bugs/attachments/20050209/cb0e8615/bugrep.tar.bin
More information about the Glasgow-haskell-bugs
mailing list