From 781f863a305c71093382908c56f9fd0095db12bf Mon Sep 17 00:00:00 2001 From: Guru Devanla Date: Sun, 27 Sep 2020 21:35:47 -0700 Subject: [PATCH 1/3] Upate Emacs setup notes Update the Emacs set up notes to reflect that latest changes in lsp-haskell. The latest version of lsp-haskell sets the default server to `haskell-language-server-wrapper`. The old variable `lsp-haskell-process-path-hie` is deprecated. --- README.md | 10 ++++++++-- 1 file changed, 8 insertions(+), 2 deletions(-) diff --git a/README.md b/README.md index d5b97e1cb5..0c95413862 100644 --- a/README.md +++ b/README.md @@ -504,12 +504,18 @@ Install HLS along with the following emacs packages: Make sure to follow the instructions in the README of each of these packages. -Install [use-package](https://github.com/jwiegley/use-package), and add the following to your .emacs +The default `lsp-haskell-server-path` is set to `haskell-language-server-wrapper`. In +case you would like your editor to use a specific version of the `hls` server, then this +variable can be updated. + +Install [use-package](https://github.com/jwiegley/use-package), and add the following to your .emacs +when you want to customize this variable. + ``` emacs-lisp (use-package lsp-haskell :ensure t :config - (setq lsp-haskell-process-path-hie "haskell-language-server-wrapper") + (setq lsp-haskell-server-path "haskell-language-server-8.10.2") ;; Comment/uncomment this line to see interactions between lsp client/server. ;;(setq lsp-log-io t) ) From f1ed7ecf4d27b276e6daba13314aa6fee0f9ee4f Mon Sep 17 00:00:00 2001 From: Guru Devanla Date: Mon, 28 Sep 2020 04:21:58 -0700 Subject: [PATCH 2/3] Update Emacs Integration Notes Remove outdated instructions and provide a list to lsp-haskell which will allow us to keep in sync with the changes. --- README.md | 16 ++-------------- 1 file changed, 2 insertions(+), 14 deletions(-) diff --git a/README.md b/README.md index 0c95413862..21e2708a6f 100644 --- a/README.md +++ b/README.md @@ -506,20 +506,8 @@ Make sure to follow the instructions in the README of each of these packages. The default `lsp-haskell-server-path` is set to `haskell-language-server-wrapper`. In case you would like your editor to use a specific version of the `hls` server, then this -variable can be updated. - -Install [use-package](https://github.com/jwiegley/use-package), and add the following to your .emacs -when you want to customize this variable. - -``` emacs-lisp -(use-package lsp-haskell - :ensure t - :config - (setq lsp-haskell-server-path "haskell-language-server-8.10.2") - ;; Comment/uncomment this line to see interactions between lsp client/server. - ;;(setq lsp-log-io t) -) -``` +variable can be updated. For more information on other configurations can be found at +[lsp-haskell](https://github.com/emacs-lsp/lsp-haskell) ### Using haskell-language-server with [doom-emacs](https://github.com/hlissner/doom-emacs/tree/develop/modules/lang/haskell#module-flags) From 683fd9d95b8286be16250eeab6f8197a57f355b9 Mon Sep 17 00:00:00 2001 From: Guru Devanla Date: Mon, 28 Sep 2020 04:25:13 -0700 Subject: [PATCH 3/3] Reduce verbosity --- README.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/README.md b/README.md index 21e2708a6f..28db38d304 100644 --- a/README.md +++ b/README.md @@ -506,7 +506,7 @@ Make sure to follow the instructions in the README of each of these packages. The default `lsp-haskell-server-path` is set to `haskell-language-server-wrapper`. In case you would like your editor to use a specific version of the `hls` server, then this -variable can be updated. For more information on other configurations can be found at +variable can be updated. Information on other configurations can be found at [lsp-haskell](https://github.com/emacs-lsp/lsp-haskell) ### Using haskell-language-server with [doom-emacs](https://github.com/hlissner/doom-emacs/tree/develop/modules/lang/haskell#module-flags)