From b70efdf2231005ce18b8508dd97e133afdbbbab1 Mon Sep 17 00:00:00 2001 From: Javier Neira Date: Tue, 22 Sep 2020 09:27:20 +0200 Subject: [PATCH 1/2] Mention the copy of executables wit ghc version * Closes #401 --- README.md | 9 +++++++++ 1 file changed, 9 insertions(+) diff --git a/README.md b/README.md index 6bead86b63..8a6168d05f 100644 --- a/README.md +++ b/README.md @@ -194,6 +194,12 @@ For brevity, only the `stack`-based commands are presented in the following sect ##### Install specific GHC Version +The script will install the executables `haskell-language-server-wrapper` and `haskell-language-server`. +It will copy the latter appending the used ghc version, needed by the wrapper to choose the suited version +for the project at hand. +So installing the executables directly with `stack install` or `cabal v2-install` may not be enough +for it to work properly. + Install haskell-language-server for the latest available and supported GHC version (and hoogle docs): ```bash @@ -207,6 +213,9 @@ stack ./install.hs hls-8.8.3 stack ./install.hs data ``` +`hls-8.8.3` target will build the project and install `haskell-language-server-wrapper`, +`haskell-language-server`, `haskell-language-server-8.8.3` and `haskell-language-server-8.8` +executables. The Haskell Language Server can also be built with `cabal v2-build` instead of `stack build`. This has the advantage that you can decide how the GHC versions have been installed. To see what GHC versions are available, the command `cabal-hls-install ghcs` can be used. From e143c13755835298ff8777af6f06ec20c3cd0065 Mon Sep 17 00:00:00 2001 From: Javier Neira Date: Tue, 22 Sep 2020 10:01:04 +0200 Subject: [PATCH 2/2] Grammar correction Co-authored-by: Neil Mitchell --- README.md | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/README.md b/README.md index 8a6168d05f..d251967ef1 100644 --- a/README.md +++ b/README.md @@ -195,7 +195,7 @@ For brevity, only the `stack`-based commands are presented in the following sect ##### Install specific GHC Version The script will install the executables `haskell-language-server-wrapper` and `haskell-language-server`. -It will copy the latter appending the used ghc version, needed by the wrapper to choose the suited version +It will copy the latter appending the used ghc version, needed by the wrapper to choose the suitable version for the project at hand. So installing the executables directly with `stack install` or `cabal v2-install` may not be enough for it to work properly. @@ -609,4 +609,3 @@ To do every time you changed code and want to test it: - With Stack: `stack build haskell-language-server:exe:haskell-language-server` - Restart HLS - With VS Code: `Haskell: Restart Haskell LSP Server` -