#2051: -hide-package doesn't allow hiding uninstalled package
--------------------------------+-------------------------------------------
    Reporter:  MagnusTherning   |        Owner:       
        Type:  feature request  |       Status:  new  
    Priority:  normal           |    Milestone:       
   Component:  Compiler         |      Version:  6.8.2
    Severity:  trivial          |   Resolution:       
    Keywords:                   |     Testcase:       
Architecture:  x86_64 (amd64)   |           Os:  Linux
--------------------------------+-------------------------------------------
Comment (by MagnusTherning):

 Replying to [comment:1 ajd]:
 > I wrote a patch to "fix" this but I'm not sure it ought to be the
 correct behavior. According to the comments around the function in
 question, -ignore-package already has this behavior because it's supposed
 to be used as a just-in-case thing, they way you are trying to use -hide-
 package. Anyway, I'm attaching the patch and I'll leave it up to the
 powers that be to decide what to do about it.

 Well, I find that I have to hide packages regularly since it allows me to
 have a module installed while I'm hacking on the next version of it.
 Without it my unit/quickcheck tests link to the installed version one by
 default.

 One option would be to keep the current behaviour as default, but allow
 overriding it e.g. by using '--force' (similar to how 'rm' has '-f').

-- 
Ticket URL: <http://hackage.haskell.org/trac/ghc/ticket/2051#comment:2>
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