#5977: Allow ignoring global package db
---------------------------------+------------------------------------------
    Reporter:  duncan            |       Owner:  simonmar        
        Type:  feature request   |      Status:  patch           
    Priority:  high              |   Milestone:  7.6.1           
   Component:  Compiler          |     Version:  7.4.1           
    Keywords:                    |          Os:  Unknown/Multiple
Architecture:  Unknown/Multiple  |     Failure:  None/Unknown    
  Difficulty:  Unknown           |    Testcase:                  
   Blockedby:                    |    Blocking:                  
     Related:                    |  
---------------------------------+------------------------------------------

Comment(by simonmar):

 I had a look at the patches.  The situation in `DynFlags` is now a bit
 strange - we have both the `Opt_ReadGlobalPackageConf` options ''and'' the
 `[PkgConfRef]`. I think we should have just the `[PkgConfRef]`
 representing the stack, and all the flags should manipulate it directly.

 So

  * We start with `[global,user]`
  * `-no-user-package-db` removes user from the list (similarly for global)
  * `-user-package-db` adds user to the end (similarly for global)
  * `-package-conf file` adds file to the end
  * `-clear-package-db` sets the list to empty

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