You need to sign in or sign up before continuing.
:show packages does not list all loaded packages
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.
Trac metadata
| Trac field | Value |
|---|---|
| Version | 6.12.3 |
| Type | Bug |
| TypeOfFailure | OtherFailure |
| Priority | normal |
| Resolution | Unresolved |
| Component | GHCi |
| Test case | |
| Differential revisions | |
| BlockedBy | |
| Related | |
| Blocking | |
| CC | |
| Operating system | |
| Architecture |