#6119: complain when ghc-pkg doesn't find any matching packages in a given
database
------------------------------+---------------------------------------------
 Reporter:  dmwit             |          Owner:                  
     Type:  feature request   |         Status:  new             
 Priority:  normal            |      Component:  Compiler        
  Version:  7.4.1             |       Keywords:                  
       Os:  Unknown/Multiple  |   Architecture:  Unknown/Multiple
  Failure:  None/Unknown      |       Testcase:                  
Blockedby:                    |       Blocking:                  
  Related:                    |  
------------------------------+---------------------------------------------
 Currently, ghc-pkg list will print something like the following when no
 package matches a query:

 {{{
 $ ghc-pkg list blargle
 /usr/local/lib/ghc-7.4.1/package.conf.d
 }}}

 This is a deceptive answer for newcomers, because they assume that this
 means the package was successfully found, and lives in
 /usr/local/lib/ghc-7.4.1/package.conf.d. It would be nice if the message
 explicitly mentioned that the result list was actually empty; for example:

 {{{
 $ ghc-pkg list blargle
 /usr/local/lib/ghc-7.4.1/package.conf.d
     (no matching packages found in this database)
 }}}

-- 
Ticket URL: <http://hackage.haskell.org/trac/ghc/ticket/6119>
GHC <http://www.haskell.org/ghc/>
The Glasgow Haskell Compiler

_______________________________________________
Glasgow-haskell-bugs mailing list
Glasgow-haskell-bugs@haskell.org
http://www.haskell.org/mailman/listinfo/glasgow-haskell-bugs

Reply via email to