commercialhaskell / stackage-server

Server for stable, curated Haskell package sets
MIT License
106 stars 27 forks source link

Easy navigation from module page back to package page #306

Open brandon-leapyear opened 3 years ago

brandon-leapyear commented 3 years ago

It used to be the case that you could:

  1. Go to a package page (e.g. https://www.stackage.org/lts-14.19/package/tasty-1.2.3)
  2. Click on a module (e.g. https://www.stackage.org/haddock/lts-14.19/tasty-1.2.3/Test-Tasty.html)
  3. Click on "Contents" in the top right
  4. Be back on the package page

This is not the case anymore, since LTS 15, I assume due to the upgrade to GHC 8.8. Clicking on "Contents" now takes you to the index.html Haddock page instead of the package page. Given that the above steps work in hackage.haskell.org, I would expect it to be the case on stackage.org, but if the change was intentional, it would be nice to have some other link available to easily navigate back to the package page

juhp commented 3 years ago

You are right - I am not sure what caused this. My first assumption would be maybe something changed in haddock. I dunno if upgrading haddock would get the older behavior back or if some change or configuration is needed??

Personally I just go Back in my browser though that only works with step 1 - I agree the old way was useful.

brandon-leapyear commented 3 years ago

:sparkles: This is an old work account. Please reference @brandonchinn178 for all future communication :sparkles:


But the Back button wouldn't work if, say, I searched for a specific function in the stackage hoogle search and went directly to the module page.

On Thu, Mar 25, 2021, 8:42 PM Jens Petersen @.***> wrote:

You are right - I am not sure what caused this. My first assumption would be maybe something changed in haddock. I dunno if upgrading haddock would get the older behavior back or if some configuration is needed??

Personally I just go Back in my browser.

— You are receiving this because you authored the thread. Reply to this email directly, view it on GitHub https://github.com/fpco/stackage-server/issues/306#issuecomment-807913445, or unsubscribe https://github.com/notifications/unsubscribe-auth/AGUC75MBMREIDYRNI7FSWPDTFP7BNANCNFSM4ZHEWU3A .