hackage-server icon indicating copy to clipboard operation
hackage-server copied to clipboard

/docs redirect doesn't take into account deprecated packages

Open ndmitchell opened this issue 3 years ago • 0 comments

In Hoogle, if you search for FunBind the first result links to https://hackage.haskell.org/package/ghc/docs/Language-Haskell-Syntax-Binds.html#v:FunBind. The URL https://hackage.haskell.org/package/ghc takes me to GHC 9.2.3, which is the second-latest version, as the subsequent ghc-9.2.3.20220620 has been marked deprecated. However, https://hackage.haskell.org/package/ghc/docs redirects to https://hackage.haskell.org/package/ghc-9.2.3.20220620/docs/ - the deprecated version, which in this case has no documentation.

It would be good if /docs shared the same logic as the non-docs link.

ndmitchell avatar Jul 07 '22 22:07 ndmitchell