Movatterモバイル変換


[0]ホーム

URL:


Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

Documentation/Source links to wrong URI when opened in Hackage (with ghc >= 9.8.4). #1303

Open
@Saizan

Description

@Saizan

This is the same problem ashaskell/haskell-language-server#4579. I believe the "bug" is in the vscode extension so I opened this. Also, I can reproduce on linux with recent enough ghc versions, i.e starting with ghc-9.8.4.

The crux is that HLS is sending the URIs for the locally stored docs, e.g.

[Documentation](file:///home/vscode/.ghcup/ghc/9.8.4/share/doc/ghc-9.8.4/html/libraries/base-4.19.2.0-9fbd/System-IO.html#v:putStrLn)[Source](file:///home/vscode/.ghcup/ghc/9.8.4/share/doc/ghc-9.8.4/html/libraries/base-4.19.2.0-9fbd/src/System.IO.html#putStrLn)

andvscode-haskell does some mangling to point them to Hackage instead. Since ghc-9.8.4 the mangling is insufficient, as it keeps the-9fbd suffix in the URI, which is not correct.

The package directories are named$pkg_name-$pkg_ver-$hex where $hex is 4 hex digits. We want to drop the-$hex suffix, and since$pkg_ver cannot contain- it's actually unambiguous.

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions


      [8]ページ先頭

      ©2009-2025 Movatter.jp