[GHC] #3183: unhelpful wording in module error message
GHC
trac at galois.com
Tue Apr 21 13:07:45 EDT 2009
#3183: unhelpful wording in module error message
-----------------------------+----------------------------------------------
Reporter: duncan | Owner:
Type: bug | Status: new
Priority: normal | Component: Compiler
Version: 6.10.2 | Severity: minor
Keywords: | Testcase:
Os: Unknown/Multiple | Architecture: Unknown/Multiple
-----------------------------+----------------------------------------------
Users sometimes hit this error message:
{{{
Could not find module `Control.Monad.State':
it was found in multiple packages: monads-fd-0.0.0.1 mtl-1.1.0.2
}}}
The problem is just the wording. It should say from start that the module
was found in multiple packages, rather than saying that it was not found
at all.
How about:
{{{
Ambiguous module name `Control.Monad.State':
it was found in multiple packages: monads-fd-0.0.0.1 mtl-1.1.0.2
}}}
We might also want the message to suggest the flags `-hide-all-packages`,
`-hide-package` and/or `-package` as part of the solution.
I'm filing this on behalf of people who ran into this while building UHC
(which does not use Cabal and does not use the `-hide-all-packages` flag).
--
Ticket URL: <http://hackage.haskell.org/trac/ghc/ticket/3183>
GHC <http://www.haskell.org/ghc/>
The Glasgow Haskell Compiler
More information about the Glasgow-haskell-bugs
mailing list