Ticket #594 (new enhancement)
Unhelpful error message for "module found in multiple packages"
|Reported by:||Tim <chevalier@…>||Owned by:|
I was checking whether cabal-install would install my "extcore" package, and got:
$ sudo cabal install extcore --enable-library-profiling --reinstall Resolving dependencies... Configuring extcore-0.3... Preprocessing library extcore-0.3... Building extcore-0.3... Language/Core/Core.hs:6:7: Could not find module `Data.Generics': it was found in multiple packages: base-22.214.171.124 syb cabal: Error: some packages failed to install: extcore-0.3 failed during the building phase. The exception was: exit: ExitFailure 1
This is an unhelpful error message because it gives the user no information about what they have to do to continue. Since I'm the package author, I was able to figure out that I needed to change the .cabal file to depend on base >= 4. In general, the error message should explain that this is a bug in the package description and to report it to the package maintainer.
cabal-install 0.6.2, library version 126.96.36.199.