Ticket #739 (new defect)

Opened 3 years ago

Last modified 17 months ago

cabal install regression with GHC HEAD - ghc-paths

Reported by: AntoineLatter Owned by:
Priority: normal Milestone:
Component: Cabal library Version: HEAD
Severity: normal Keywords:
Cc: AntoineLatter Difficulty: very easy (<1 hour)
GHC Version: Platform:

Description

with the Cabal library installed with GHC 6.13.20100911 I can no longer install the package ghc-paths-0.1.0.6

In 'ghci Setup.hs' I get the error:

Setup.hs:41:25:

Ambiguous occurrence `None' It could refer to either `Distribution.Simple.Setup.None', imported from Distribution.Simple.Setup at Setup.hs:2:1-32

or `Pkg.None', imported from Distribution.Simple.PackageIndex? at Setup.hs:7:1-46

It looks like the 'None' constructor didn't exist in Distribution.Simple.Setup in Cabal 1.8.x. While we can't guarantee that an added constructor doesn't conflict with data declarations used in every Setup.hs, it seems in poor form to export the same constructor in two types in the same library.

Change History

Changed 3 years ago by AntoineLatter

I proposed a fix for this on the mailing list:  http://www.haskell.org/pipermail/cabal-devel/2010-September/006632.html

It isn't tested much, but the changes are simple.

Changed 3 years ago by duncan

  • difficulty changed from unknown to very easy (<1 hour)
data TestLogging = Terminal | File | Both | None | Empty

and

data SearchResult a = None | Unambiguous a | Ambiguous [a]

Probably both are rather too generic names. At least the test one should be renamed.

Changed 17 months ago by elga

Changed 17 months ago by edouard

Simplifiez-vous la tache des aujourd'hui: obtenez vos codes Orange rio, SFR rio, Bouygues rio, Virgin Mobile rio ou Simyo rio et effectuez la portabilite de votre numero de telephone sans tracas...en douceur !  simyo

Note: See TracTickets for help on using tickets.