#8 new
Mateusz Kowalczyk

Duplicate instance declarations

Reported by Mateusz Kowalczyk | June 3rd, 2013 @ 10:39 PM

Trying to build test-framework-0.8, the compilation fails with

[22 of 23] Compiling Test.Framework.Runners.Console ( Test/Framework/Runners/Console.hs, dist/build/Test/Framework/Runners/Console.o )

Test/Framework/Runners/Console.hs:26:10:
Duplicate instance declarations: instance Functor OptDescr -- Defined at Test/Framework/Runners/Console.hs:26:10 instance [safe] Functor OptDescr -- Defined in ‛System.Console.GetOpt’

Test/Framework/Runners/Console.hs:29:10:
Duplicate instance declarations: instance Functor ArgDescr -- Defined at Test/Framework/Runners/Console.hs:29:10 instance [safe] Functor ArgDescr -- Defined in ‛System.Console.GetOpt’ Failed to install test-framework-0.8

I'm unsure whether I'm barking up the right tree but there.

As a side note, the program does successfully compile if I comment out those two instance declarations but then installing test-framework-quickcheck2-0.3.0.1 fails due to the bad interface file:
[1 of 1] Compiling Test.Framework.Providers.QuickCheck2 ( Test/Framework/Providers/QuickCheck2.hs, dist/build/Test/Fram ework/Providers/QuickCheck2.o )
/home/shana/.cabal/lib/test-framework-0.8/ghc-7.7.20130531/Test/Framework/Core.hi Declaration for Test
Constructor Test.Framework.Core.Test:
Iface type variable out of scope: i Cannot continue after interface file error
Failed to install test-framework-quickcheck2-0.3.0.1

No comments found

Please Sign in or create a free account to add a new ticket.

With your very own profile, you can contribute to projects, track your activity, watch tickets, receive and update tickets through your email and much more.

New-ticket Create new ticket

Create your profile

Help contribute to this project by taking a few moments to create your personal profile. Create your profile »

Framework for running and organising QuickCheck test properties

People watching this ticket

Pages