Ticket #2330 (closed bug: fixed)
ghc-pkg should not report duplicate depends
|Reported by:||duncan||Owned by:||simonmar|
|Type of failure:||Difficulty:||Unknown|
|Test Case:||Blocked By:|
$ ghc-pkg field regex-base-0.72.0.1 depends depends: base-220.127.116.11 array-0.1.0.0 base-18.104.22.168 bytestring-0.9.0.1
Note the base-22.214.171.124 base-126.96.36.199. This is clearly silly. It causes problems for Cabal. Although we can easily work around this using nub it'd be better if duplicate depends were never reported or better yet rejected or eliminated at package registration time.
(I'm not sure how it ended up this way, I don't think Cabal makes package registration files with duplicate depends)