ghc-pkg list --show-unit-ids doesn't show unit ids
ghc-pkg-9.8.2 list --show-unit-ids
/home/phadej/.ghcup/ghc/9.8.2/lib/ghc-9.8.2/lib/package.conf.d
Cabal-3.10.2.0
Cabal-syntax-3.10.2.0
array-0.5.6.0
base-4.19.1.0
...
but if I look at the individual packages
% ghc-pkg-9.8.2 describe Cabal-syntax-3.10.2.0 | head
name: Cabal-syntax
version: 3.10.2.0
visibility: public
id: Cabal-syntax-3.10.2.0-8eb4
key: Cabal-syntax-3.10.2.0-8eb4
There's now a small hash added, so --show-unit-ids
doesn't work correctly.
They unit ids are shown with --simple-output
, but then every package is listed twice:
% ghc-pkg-9.8.2 list --show-unit-ids --simple-output
Cabal-3.10.2.0-fd40
Cabal-syntax-3.10.2.0-8eb4
array-0.5.6.0-b08f
base-4.19.1.0-c38a
binary-0.8.9.1-6eb5
bytestring-0.12.1.0-2ee7
containers-0.6.8-d9b8
deepseq-1.5.0.0-adea
directory-1.3.8.1-0931
exceptions-0.10.7-93ec
filepath-1.4.200.1-6350
ghc-9.8.2-6af5
ghc-bignum-1.3-5d39
ghc-boot-9.8.2-be06
ghc-boot-th-9.8.2-cec8
ghc-compact-0.1.0.0-3a6e
ghc-heap-9.8.2-3841
ghc-prim-0.11.0-9ff8
ghci-9.8.2-c8af
haskeline-0.8.2.1-059d
hpc-0.7.0.0-4aec
integer-gmp-1.1-931f
mtl-2.3.1-0d33
parsec-3.1.17.0-d3a0
pretty-1.1.3.6-c96a
process-1.6.18.0-9c1a
rts-1.0.2
semaphore-compat-1.0.0-2bee
stm-2.5.2.1-73cd
system-cxx-std-lib-1.0
template-haskell-2.21.0.0-f842
terminfo-0.4.1.6-e464
text-2.1.1-cc4c
time-1.12.2-d509
transformers-0.6.1.0-bca4
unix-2.8.4.0-6fcf
xhtml-3000.2.2.1-b0c4
Cabal-3.10.2.0-fd40 Cabal-syntax-3.10.2.0-8eb4 array-0.5.6.0-b08f base-4.19.1.0-c38a binary-0.8.9.1-6eb5 bytestring-0.12.1.0-2ee7 containers-0.6.8-d9b8 deepseq-1.5.0.0-adea directory-1.3.8.1-0931 exceptions-0.10.7-93ec filepath-1.4.200.1-6350 ghc-9.8.2-6af5 ghc-bignum-1.3-5d39 ghc-boot-9.8.2-be06 ghc-boot-th-9.8.2-cec8 ghc-compact-0.1.0.0-3a6e ghc-heap-9.8.2-3841 ghc-prim-0.11.0-9ff8 ghci-9.8.2-c8af haskeline-0.8.2.1-059d hpc-0.7.0.0-4aec integer-gmp-1.1-931f mtl-2.3.1-0d33 parsec-3.1.17.0-d3a0 pretty-1.1.3.6-c96a process-1.6.18.0-9c1a rts-1.0.2 semaphore-compat-1.0.0-2bee stm-2.5.2.1-73cd system-cxx-std-lib-1.0 template-haskell-2.21.0.0-f842 terminfo-0.4.1.6-e464 text-2.1.1-cc4c time-1.12.2-d509 transformers-0.6.1.0-bca4 unix-2.8.4.0-6fcf xhtml-3000.2.2.1-b0c4