#4300: :show packages does not list all loaded packages
---------------------------------+------------------------------------------
Reporter: claus | Owner:
Type: bug | Status: new
Priority: normal | Component: GHCi
Version: 6.12.3 | Keywords:
Testcase: | Blockedby:
Os: Unknown/Multiple | Blocking:
Architecture: Unknown/Multiple | Failure: None/Unknown
---------------------------------+------------------------------------------
GHCi's `:show packages` seems to have bit-rotted, no longer listing all
loaded packages:
{{{
$ printf "Data.Map.fromList [(1,2)]\n:show packages" | ghc.exe
--interactive -ignore-dot-ghci
GHCi, version 6.12.3: http://www.haskell.org/ghc/ :? for help
Loading package ghc-prim ... linking ... done.
Loading package integer-gmp ... linking ... done.
Loading package base ... linking ... done.
Loading package ffi-1.0 ... linking ... done.
Prelude> Loading package array-0.3.0.1 ... linking ... done.
Loading package containers-0.3.0.0 ... linking ... done.
fromList [(1,2)]
Prelude> active package flags: none
packages currently loaded:
base
ffi-1.0
ghc-prim
integer-gmp
rts
Prelude> Leaving GHCi.
}}}
Note that `containers` and `array` are loaded when the call to
`Data.Map.fromList` is made, but the packages are not listed in the output
of `:show packages`.
If it helps, `:show linker` does list the extra packages:
{{{
$ printf "Data.Map.fromList [(1,2)]\n:show linker" | ghc.exe --interactive
-ignore-dot-ghci
GHCi, version 6.12.3: http://www.haskell.org/ghc/ :? for help
Loading package ghc-prim ... linking ... done.
Loading package integer-gmp ... linking ... done.
Loading package base ... linking ... done.
Loading package ffi-1.0 ... linking ... done.
Prelude> Loading package array-0.3.0.1 ... linking ... done.
Loading package containers-0.3.0.0 ... linking ... done.
fromList [(1,2)]
Prelude> ----- Linker state -----
Pkgs: [containers-0.3.0.0, array-0.3.0.1, ffi-1.0, base,
integer-gmp, ghc-prim, rts]
Objs: []
BCOs: []
Prelude> Leaving GHCi.
}}}
--
Ticket URL: <http://hackage.haskell.org/trac/ghc/ticket/4300>
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