#5977: Allow ignoring global package db
---------------------------------+------------------------------------------
Reporter: duncan | Owner: pcapriotti
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 find it weird that `-no-user-package-db` affects the "initial stack",
but `-user-package-db` appends the user db to the final stack. So e.g.
`-user-package-db -no-user-package-db` does not do what you expect.
So I see two alternatives. One is to modify my proposal to take into
account `GHC_PACKAGE_PATH`: just initialise the stack from
`GHC_PACKAGE_PATH` before processing the arguments, defaulting to
`[global,user]` if `GHC_PACKAGE_PATH` is not set.
The other alternative is to keep the concept of the "initial stack", but
make `-user-package-db` and `-global-package-db` just the inverses of
`-no-user-package-db` and `-no-global-package-db` respectively. I'd be ok
with that too.
--
Ticket URL: <http://hackage.haskell.org/trac/ghc/ticket/5977#comment:9>
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