#4424: Dynamically set -hide-all-packages is being ignored.
---------------------------------+------------------------------------------
Reporter: nominolo | Owner:
Type: bug | Status: new
Priority: normal | Component: Compiler
Version: 6.13 | Keywords:
Testcase: | Blockedby:
Os: Unknown/Multiple | Blocking:
Architecture: Unknown/Multiple | Failure: None/Unknown
---------------------------------+------------------------------------------
Consider the following two alternative ways of specifying dynflags:
{{{
./inplace/bin/ghc-stage2 --interactive -hide-all-packages -package base
GHCi, version 7.1.20101013: http://www.haskell.org/ghc/ :? for help
[...]
Prelude> import Control.Monad.State.Strict
<no location info>:
Could not find module `Control.Monad.State.Strict':
It is a member of the hidden package `monads-fd-0.1.0.2'.
It is a member of the hidden package `mtl-1.1.1.0'.
Use -v to see a list of the files searched for.
}}}
Now, instead of specifying the flags on startup we set them after startup:
{{{
./inplace/bin/ghc-stage2 --interactive
GHCi, version 7.1.20101013: http://www.haskell.org/ghc/ :? for help
[...]
Prelude> import Control.Monad.State.Strict
<no location info>:
Ambiguous module name `Control.Monad.State.Strict':
it was found in multiple packages: monads-fd-0.1.0.2 mtl-1.1.1.0
Prelude> :set -hide-all-packages
Prelude> import Control.Monad.State.Strict
<no location info>:
Ambiguous module name `Control.Monad.State.Strict':
it was found in multiple packages: monads-fd-0.1.0.2 mtl-1.1.1.0
}}}
The interactive call to `:set -hide-all-packages` is ignored. The same
happens inside the GHC API (which is causing me problems).
You need to have both `mtl` and `monads-fd` installed to get the above
error.
--
Ticket URL: <http://hackage.haskell.org/trac/ghc/ticket/4424>
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