-
Notifications
You must be signed in to change notification settings - Fork 146
Open
Description
Attempting to generate database for local GHC packages fails on GHC versions 9.4.8 & 9.6.4. 9.2.8 is fine.
All the GHC versions in my tests were installed using GHCup. The hoogle
is the latest version installed using cabal install hoogle
.
hoogle generate -l
fails to find the documentation for built-in packages like base
and binary
under the problematic GHC versions. hoogle generate -h
seems to find the documentation when given the html/libraries
directory associated with GHC installation, but the resulting database is unsuitable for serving as the generated documentation URLs have wrong paths, so -h
is not a suitable workaround.
$ which ghc
/home/jchia/.ghcup/bin/ghc
$ ghc --version
The Glorious Glasgow Haskell Compilation System, version 9.6.4
$ ll /home/jchia/.ghcup/bin/ghc
lrwxrwxrwx 1 jchia jchia 26 Jan 26 18:01 /home/jchia/.ghcup/bin/ghc -> ../ghc/9.6.4/bin/ghc-9.6.4*
$ rm /tmp/dm.hoo; hoogle generate -vvv -l --database /tmp/dm.hoo
Starting generate
Generating files to /tmp
Reading ghc-pkg... 0.03s
Packages missing documentation: array base binary bytestring Cabal Cabal-syntax containers deepseq directory exceptions filepath ghc ghc-bignum ghc-boot ghc-boot-th ghc-compact ghc-heap ghc-prim ghci haskeline hpc integer-gmp libiserv mtl parsec pretty process rts stm system-cxx-std-lib template-haskell terminfo text time transformers unix xhtml
No packages were found, aborting (use no arguments to index all of Stackage)
$ rm /tmp/dm.hoo; hoogle generate -vvv -h ~/.ghcup/ghc/9.6.4/share/doc/ghc-9.6.4/html/libraries/ --database /tmp/dm.hoo
Starting generate
Generating files to /tmp
Reading ghc-pkg... 0.03s
[4/37] base... 1.03s
[12/37] ghc... 3.52s
[31/37] transformers... 0.06s
[33/37] xhtml... 0.03s
Packages missing documentation: ghc-compact integer-gmp rts system-cxx-std-lib
Found 208 warnings when processing items
Reordering items... 0.02s
Writing tags... 0.07s
Writing names... 0.07s
Writing types... 0.33s
Took 7.83s
Metadata
Metadata
Assignees
Labels
No labels