Skip to content
Snippets Groups Projects
  1. Mar 29, 2023
  2. Mar 23, 2023
  3. Jan 30, 2023
  4. Dec 22, 2022
  5. Dec 14, 2022
  6. Dec 10, 2022
  7. Dec 08, 2022
  8. Dec 07, 2022
  9. Nov 25, 2022
  10. Nov 21, 2022
  11. Nov 01, 2022
  12. Oct 25, 2022
  13. Oct 22, 2022
  14. Oct 17, 2022
  15. Sep 24, 2022
  16. Sep 21, 2022
  17. Sep 18, 2022
  18. Sep 17, 2022
  19. Sep 15, 2022
  20. Aug 16, 2022
  21. Aug 15, 2022
  22. Aug 07, 2022
  23. Aug 06, 2022
  24. Aug 05, 2022
  25. Jul 29, 2022
    • Hécate Moonlight's avatar
      Merge pull request #1516 from duog/9-4-backport-fix-hyperlinks · 7484cf88
      Hécate Moonlight authored
      Backport 9-4: Fix hyperlinks to external items and modules (#1482)
      Unverified
      7484cf88
    • Jade Lovelace's avatar
      Fix hyperlinks to external items and modules (#1482) · 2036454b
      Jade Lovelace authored and Douglas Wilson's avatar Douglas Wilson committed
      Fixes #1481.
      
      There were two bugs in this:
      * We were assuming that we were always getting a relative path to the
        module in question, while Nix gives us file:// URLs sometimes. This
        change checks for those and stops prepending `..` to them.
      * We were not linking to the file under the module. This seems
        to have been a regression introduced by #977. That is, the URLs were
        going to something like
        file:///nix/store/3bwbsy0llxxn1pixx3ll02alln56ivxy-ghc-9.0.2-doc/share/doc/ghc/html/libraries/base-4.15.1.0/src
        which does not have the appropriate HTML file or fragment for the item
        in question at the end.
      
      There is a remaining instance of the latter bug, but not in the
      hyperlinker: the source links to items reexported from other modules are
      also not including the correct file name. e.g. the reexport of Entity in
      esqueleto, from persistent.
      
      NOTE: This needs to get tested with relative-path located modules. It seems
      correct for Nix based on my testing.
      
      Testing strategy:
      
      ```
      nix-shell '<nixpkgs>' --pure -A haskell.packages.ghc922.aeson
      mkdir /tmp/aesonbuild && cd /tmp/aesonbuild
      export out=/tmp/aesonbuild/out
      genericBuild
      
      ln -sf $HOME/co/haddock/haddock-api/resources .
      ./Setup haddock --with-haddock=$HOME/path/to/haddock/exec --hyperlink-source
      ```
      
      (cherry picked from commit ab53ccf0)
      2036454b
  26. Jul 24, 2022
  27. Jul 19, 2022
  28. Jul 16, 2022
Loading