Missing hyperlinks to types and functions in external packages (Haddock on Hackage).

Aperta
#1,364 0 commenti 0 reazioni 0 assegnatari Vedi su GitHub

Nessuno ha ancora preso questa issue.

Valutazione

Difficoltà
4/5
Tempo stimato
3-5 giorni
Idoneità per principianti
35/100
Tipo di issue
Bug
Chiarezza
Da chiarire
Stato di attività
Ferma
Stack tecnologico
haskell
Ambito
documentation

Direzione di ricerca

Inizia con i report collegati su Hackage per monoidmap-aeson e confrontali con le build locali e quelle di GitHub Actions usando Haddock 2.30.0. Esamina come Hackage genera i link alla documentazione per monoidmap rispetto a aeson e monoid-subclasses. Il lavoro è completato quando è stata identificata la causa dei link mancanti ed è stato documentato o implementato un fix in modo che MonoidMap e fromList siano collegati correttamente su Hackage.

Scritto dal modello di indicizzazione a partire dal testo della issue.

Descrizione

When Hackage generates Haddock documentation for monoidmap-aeson, it:

  • successfully generates hyperlinks to types and functions in packages such as aeson and monoid-subclasses.
  • but fails to generate hyperlinks to types and functions from the monoidmap package.

Logs and debugging

Is it possible to inspect logs for haddock generation on hackage? I can see logs here, but can't see an obvious cause for the hyperlink failure. (Though perhaps I'm looking in the wrong place?)

Versions

This has happened for all of the following versions:

I initially assumed that there must be something broken in the monoidmap-aeson package.

However, when I run cabal haddock locally on the same source code, or as part of CI (which uses Haddock version 2.30.0), everything works as expected, and all hyperlinks are generated successfully. 🤷🏻

Expected behaviour

Documentation built by GitHub actions (link) (Haddock version 2.30.0):

Image

Note that symbols like MonoidMap and fromList are successfully hyperlinked.

Actual behaviour

Documentation built on Hackage (link):

Image

Note that symbols like ToJSON, encode, and Sum are hyperlinked, but MonoidMap and fromList are not, and yet both of these are exported from the Data.MonoidMap module, as already published on hackage (see monoidmap:Data.MonoidMap).

Workarounds

I know it's possible to upload documentation manually, but I'd like to figure out if there's something I'm doing wrong that is preventing Hackage from successfully generating hyperlinks to monoidmap.

Lingua principale
Haskell
Stelle
471
Fork
228
Merge medio
5g 6h
PR unite (30g)
3

Preparare l'ambiente

  • Include un Dockerfile o un file Docker Compose
  • Nessun modello di pull request
  • Nessuna guida per i contributori

Come iniziare

  1. Leggi tutta la issue e poi la guida ai contributi del progetto.
  2. Commenta sulla issue per dire che te ne occupi tu — evita che due persone facciano lo stesso lavoro.
  3. Fai un fork del repository e lavora su un branch.
  4. Apri una pull request che faccia riferimento al numero della issue.

Altre issue di haskell/hackage-server

Tutte le issue di haskell/hackage-server

Issue simili

Altre issue su Haskell

Ricevi le nuove issue nella tua casella

Un breve riepilogo di issue GitHub adatte ai principianti.