#3168: Unhelpful error message about "hidden" packages
---------------------------------+------------------------------------------
    Reporter:  simonpj           |        Owner:                  
        Type:  bug               |       Status:  new             
    Priority:  normal            |    Milestone:  6.12.1          
   Component:  Compiler          |      Version:  6.10.2          
    Severity:  normal            |   Resolution:                  
    Keywords:                    |   Difficulty:  Easy (1 hr)     
    Testcase:                    |           Os:  Unknown/Multiple
Architecture:  Unknown/Multiple  |  
---------------------------------+------------------------------------------
Changes (by simonpj):

  * difficulty:  Unknown => Easy (1 hr)
  * milestone:  => 6.12.1

Comment:

 I think this is readily fixable.  Line 601 of Finder.lhs has
 {{{
     pkg_hidden pkg =
         ptext (sLit "it is a member of the hidden package") <+> quotes
 (ppr pkg)
 }}}
 I suggest instead:
 {{{
   "Since it is a member of package bytestring-0.9.1.4,
    perhaps you intended to say '-package bytestring',
    or (if using Cabal) perhaps you omitted 'bytestring' from the
    build-depends in your .cabal file."
 }}}
 If there are multiple hidden packages that contain the module, we probably
 don't want all this blurb for each one; but some simple rewording should
 do, and all the info is available in `Finder.cantFindError`.

 Better wordings welcome.

 Simon

-- 
Ticket URL: <http://hackage.haskell.org/trac/ghc/ticket/3168#comment:1>
GHC <http://www.haskell.org/ghc/>
The Glasgow Haskell Compiler
_______________________________________________
Glasgow-haskell-bugs mailing list
[email protected]
http://www.haskell.org/mailman/listinfo/glasgow-haskell-bugs

Reply via email to