[ANN] Haskell Language Server 2.10.0.0

Binaries for this release are available at
Index of /~hls/haskell-language-server-2.10.0.0/.

These binaries can be installed using GHCup, using the vanilla metadata channel.

ghcup --url-source=https://raw.githubusercontent.com/haskell/ghcup-metadata/master/ghcup-vanilla-0.0.9.yaml install hls 2.10.0.0

All of these tarballs have associated GPG signatures. The signature should be from Hannes Siebenhandl <hannes.siebenhandl@posteo.net> (key ID 9849506453CA97E75F505D054EF829564CA34FC8).

The prebuilt binaries in this release support the following GHC versions:

  • 9.4.8
  • 9.6.7
  • 9.8.4
  • 9.10.1
  • 9.12.2

ChangeLog

  • Jump to Implementation LSP request
    • Jump to the implementation of type class methods
  • hls-cabal-plugin features
    • Support for cabal-add
    • Goto Definition for common sections
    • Outline of .cabal files
  • Fix handling of LSP resolve requests
  • Display Inlay Hints
    • Records
    • Imports
38 Likes

This release also has the diagnostics support doesn’t it?

Yes, the new release is using GHC’s structured diagnostics!

Just not a user facing change, so usually less promiment in the ChangeLog.

4 Likes

I think you can see the error codes now in the ui on the top left of the window that pops up if you hover over an error, but I’d have to check that.

Yes, here you can see the GHC-39999 in two places:

4 Likes

I completely forgot about that, indeed, this is user facing!
Thanks for pointing it out!

2 Likes

PSA: Unfortunately, the binary distributions for some platforms contain older HLS binaries which have been built in November 2024.

The affected binary distributions are:

  • haskell-language-server-2.10.0.0-aarch64-linux-ubuntu20.tar.xz
  • haskell-language-server-2.10.0.0-x86_64-linux-mint19.3.tar.xz
  • haskell-language-server-2.10.0.0-x86_64-linux-mint20.2.tar.xz
  • haskell-language-server-2.10.0.0-x86_64-linux-ubuntu18.04.tar.xz
  • haskell-language-server-2.10.0.0-x86_64-linux-ubuntu20.04.tar.xz
  • haskell-language-server-2.10.0.0-x86_64-linux-ubuntu22.04.tar.xz

These are based on a commit from November and do not contain binaries for GHC 9.12.2.

The Hackage release is unaffected and can still be used, only the bindists are affected.
Consequentially, building from source works fine.

The HLS team is working on fixing the situation :slight_smile:

Note: You are only affected if you have been explicitly opting to use the vanilla metadata channel via ghcup --url-source=https://raw.githubusercontent.com/haskell/ghcup-metadata/master/ghcup-vanilla-0.0.9.yaml install hls 2.10.0.0.

2 Likes

I updated my Fedora Copr repo to 2.10:
https://copr.fedorainfracloud.org/coprs/petersen/haskell-language-server/

2 Likes

We published a “revision” (i.e. new release) for the vanilla binaries.
To install the updated vanilla binaries for HLS 2.10.0.0, called 2.10.0.0-p1, please use

ghcup --url-source=https://raw.githubusercontent.com/haskell/ghcup-metadata/master/ghcup-vanilla-0.0.9.yaml install hls 2.10.0.0-p1
1 Like