[GHC] #11023: ghci and ghc-pkg disagree about what's exposed

#11023: ghci and ghc-pkg disagree about what's exposed -------------------------------------+------------------------------------- Reporter: dmwit | Owner: Type: bug | Status: new Priority: normal | Milestone: Component: Package | Version: 7.10.2 system | Keywords: | Operating System: Unknown/Multiple Architecture: | Type of failure: None/Unknown Unknown/Multiple | Test Case: | Blocked By: Blocking: | Related Tickets: Differential Rev(s): | Wiki Page: -------------------------------------+------------------------------------- I have installed vector-0.10.12.3 and vector-0.11.0.0. At some point, I had hidden both from the package database; however, I later used ghc-pkg expose to mark one as visible again. Now I seem to be in a strange state where ghci and ghc-pkg disagree about what is hidden: {{{ % ghci-7.10.2 GHCi, version 7.10.2: http://www.haskell.org/ghc/ :? for help Prelude> :m +Data.Vector.Unboxed <no location info>: Could not find module ‘Data.Vector.Unboxed’ It is a member of the hidden package ‘vector-0.11.0.0@vecto_3jMaUrldidp1bqsrn0qsS2’. It is a member of the hidden package ‘vector-0.10.12.3@vecto_1COyUuV1LrA1IjYnWfJnbs’. Prelude> Leaving GHCi. % ghc-pkg-7.10.2 list vector | cat /usr/local/lib/ghc-7.10.2/package.conf.d: (no packages) /home/dmwit/.ghc/x86_64-linux-7.10.2/package.conf.d: vector-0.10.12.3 (vector-0.11.0.0) % ghc-pkg-7.10.2 describe vector-0.10.12.3 | grep 'key:\|exposed:' key: vecto_1COyUuV1LrA1IjYnWfJnbs exposed: True }}} I have tried reproducing this with other packages in a handful of ways and failed; so I can't give instructions for reproducing. But I am happy to perform any diagnostics you can think of. -- Ticket URL: http://ghc.haskell.org/trac/ghc/ticket/11023 GHC http://www.haskell.org/ghc/ The Glasgow Haskell Compiler

#11023: ghci and ghc-pkg disagree about what's exposed -------------------------------------+------------------------------------- Reporter: dmwit | Owner: Type: bug | Status: new Priority: normal | Milestone: Component: Package system | Version: 7.10.2 Resolution: | Keywords: Operating System: Unknown/Multiple | Architecture: | Unknown/Multiple Type of failure: None/Unknown | Test Case: Blocked By: | Blocking: Related Tickets: | Differential Rev(s): Wiki Page: | -------------------------------------+------------------------------------- Comment (by rwbarton): So ghci calls vector-0.10.12.3 hidden while ghc-pkg calls it exposed. I think this will happen when one of the dependencies of vector-0.10.12.3 is hidden. Not confident though. -- Ticket URL: http://ghc.haskell.org/trac/ghc/ticket/11023#comment:1 GHC http://www.haskell.org/ghc/ The Glasgow Haskell Compiler

#11023: ghci and ghc-pkg disagree about what's exposed -------------------------------------+------------------------------------- Reporter: dmwit | Owner: Type: bug | Status: new Priority: normal | Milestone: Component: Package system | Version: 7.10.2 Resolution: | Keywords: Operating System: Unknown/Multiple | Architecture: | Unknown/Multiple Type of failure: None/Unknown | Test Case: Blocked By: | Blocking: Related Tickets: | Differential Rev(s): Wiki Page: | -------------------------------------+------------------------------------- Comment (by dmwit): According to ghc-pkg, the only two packages that are hidden are vector-0.11.0.0 (in the user database) and ghc-7.10.2 (in the global database). Neither of those appear in the dependency tree of vector-0.10.12.3, which is: {{{ vector-0.10.12.3 ├── base-4.8.1.0 │ ├── ghc-prim-0.4.0.0 │ │ └── builtin_rts │ └── integer-gmp-1.0.0.0 │ └── ghc-prim-0.4.0.0 │ └── builtin_rts ├── deepseq-1.4.1.1 │ ├── array-0.5.1.0 │ │ └── base-4.8.1.0 │ │ ├── ghc-prim-0.4.0.0 │ │ │ └── builtin_rts │ │ └── integer-gmp-1.0.0.0 │ │ └── ghc-prim-0.4.0.0 │ │ └── builtin_rts │ └── base-4.8.1.0 │ ├── ghc-prim-0.4.0.0 │ │ └── builtin_rts │ └── integer-gmp-1.0.0.0 │ └── ghc-prim-0.4.0.0 │ └── builtin_rts ├── ghc-prim-0.4.0.0 │ └── builtin_rts └── primitive-0.6 ├── base-4.8.1.0 │ ├── ghc-prim-0.4.0.0 │ │ └── builtin_rts │ └── integer-gmp-1.0.0.0 │ └── ghc-prim-0.4.0.0 │ └── builtin_rts ├── ghc-prim-0.4.0.0 │ └── builtin_rts └── transformers-0.4.2.0 └── base-4.8.1.0 ├── ghc-prim-0.4.0.0 │ └── builtin_rts └── integer-gmp-1.0.0.0 └── ghc-prim-0.4.0.0 └── builtin_rts }}} I also ran ghc-pkg check just to make sure no packages were broken; the only report is an unrelated complaint about haddocks for the nats package. -- Ticket URL: http://ghc.haskell.org/trac/ghc/ticket/11023#comment:2 GHC http://www.haskell.org/ghc/ The Glasgow Haskell Compiler
participants (1)
-
GHC