HLS and the command line

(Note: implicitly I have asked the following question in this thread, but I separate it out because the other thread is more about VS Code.)

I try to figure out what’s the default HLS on my system.

The default GHC I can check with which ghc (and then ghc --version), however for HLS neither hls nor haskell-language-server can be found; only versioned haskell-language-server-... binaries are installed in ~/.ghcup/bin.

How can I find out what’s the default HLS and how can I run it from the command line?

as I just commented in the other thread: look for haskell-language-server-wrapper in this folder


Indeed, GHCup says that hls is installed, but I find no generic binary has all the details.