-
Notifications
You must be signed in to change notification settings - Fork 164
Description
Something is wrong with the haddock files on hackage for clash-prelude-1.8.2.
When viewing the hackage page for clash-prelude-1.8.2 and trying to use the Quick Jump feature, by pressing the s key, you get taken to the bottom of the page, and the search box looks different from normal.
Searching does work, but all links are broken, for example sample links to: https://hackage.haskell.org/package/clash-prelude-1.8.2/#v:sample
One version early clash-prelude-1.8.1 does function normally.
Looking at the browser console, I can see a 403 error when attempting to load https://hackage.haskell.org/package/clash-prelude-1.8.2/docs/quick-jump.css
And a message(view its source):
Quick Jump hash is not correct: Accepted Quick Jump hashes are listed in the hackage-server source code.
Both versions are listed as "Docs uploaded by user".
So apparently after clash-prelude-1.8.1 we started uploading "illegal" quick-jump.css files to hackage.
Interestingly clash-lib-1.8.2 is correct, but both clash-lib-1.8.2/candidate and clash-lib-1.9.0/candidate are also broken.
By manually patching the css file via the developer tools, I've verified that is broke css file is the cause of the observed behaviour.
But I was very surprised to see a css file affect a link target like this.