From 6616fef82abe42b4385b01980303648330fd4958 Mon Sep 17 00:00:00 2001 From: Javier Neira Date: Wed, 22 Sep 2021 11:02:38 +0200 Subject: [PATCH 1/6] Add ghcup freebsd and compile options --- docs/installation.md | 18 ++++++++++++++---- 1 file changed, 14 insertions(+), 4 deletions(-) diff --git a/docs/installation.md b/docs/installation.md index 97a18dcc8d..6347506e07 100644 --- a/docs/installation.md +++ b/docs/installation.md @@ -9,14 +9,21 @@ ## ghcup If you are using [`ghcup`](https://www.haskell.org/ghcup/) to manage your installations, you can install `haskell-language-server` with -``` +```bash ghcup install hls ``` +Since ghcup-1.17.0 you can also install HLS from source without checking out the code manually: +```bash +ghcup compile hls -v 1.4.0.0 8.10.7 +``` + +Check `ghcup compile hls --help` for a full list of compilation options. + ## chocolatey If you are using [`chocolatey`](https://chocolatey.org/) to manage your installations in windows, [you can install `haskell-language-server`](https://community.chocolatey.org/packages/haskell-language-server) with -``` +```bash choco install haskell-language-server ```` @@ -39,7 +46,7 @@ Its size is relatively large (approx. 900 MB), but if this is a problem for you, Alternatively, if you want to use **dynamically linked** Haskell packages from `pacman`, you can install the latest pre-compiled version of `haskell-language-server` from [[community]](https://archlinux.org/packages/community/x86_64/haskell-language-server/): -``` +```bash sudo pacman -S haskell-language-server ``` @@ -50,13 +57,16 @@ See [ArchWiki](https://wiki.archlinux.org/index.php/Haskell) for the details of HLS is available for installation from official binary packages. Use -``` +```bash pkg install hs-haskell-language-server ``` to install it. At the moment, HLS installed this way only supports the same GHC version as the ports one. +Since 1.4.0 version you also can install HLS via [ghcup](#ghcup). + + ## Installation from source ### Common pre-requirements From e43b6fc438a927ab4cb178ce5acd7e845d5706f5 Mon Sep 17 00:00:00 2001 From: Javier Neira Date: Wed, 22 Sep 2021 12:27:57 +0200 Subject: [PATCH 2/6] Correct hls version Co-authored-by: Julian Ospald --- docs/installation.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/docs/installation.md b/docs/installation.md index 6347506e07..9f31924866 100644 --- a/docs/installation.md +++ b/docs/installation.md @@ -15,7 +15,7 @@ ghcup install hls Since ghcup-1.17.0 you can also install HLS from source without checking out the code manually: ```bash -ghcup compile hls -v 1.4.0.0 8.10.7 +ghcup compile hls -v 1.4.0 8.10.7 ``` Check `ghcup compile hls --help` for a full list of compilation options. From 13b48f0efa17f050706c16d06bd256118a65fb00 Mon Sep 17 00:00:00 2001 From: Javier Neira Date: Wed, 22 Sep 2021 12:28:14 +0200 Subject: [PATCH 3/6] correct ghcup version Co-authored-by: Julian Ospald --- docs/installation.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/docs/installation.md b/docs/installation.md index 9f31924866..dc07f65bb2 100644 --- a/docs/installation.md +++ b/docs/installation.md @@ -13,7 +13,7 @@ If you are using [`ghcup`](https://www.haskell.org/ghcup/) to manage your instal ghcup install hls ``` -Since ghcup-1.17.0 you can also install HLS from source without checking out the code manually: +Since ghcup-0.1.17 you can also install HLS from source without checking out the code manually: ```bash ghcup compile hls -v 1.4.0 8.10.7 ``` From 4a2fc9d624abe18529ba7079000f7e4ae5552719 Mon Sep 17 00:00:00 2001 From: Javier Neira Date: Thu, 23 Sep 2021 13:28:22 +0200 Subject: [PATCH 4/6] Avoid historical remarks --- docs/installation.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/docs/installation.md b/docs/installation.md index dc07f65bb2..035ae8ad36 100644 --- a/docs/installation.md +++ b/docs/installation.md @@ -13,7 +13,7 @@ If you are using [`ghcup`](https://www.haskell.org/ghcup/) to manage your instal ghcup install hls ``` -Since ghcup-0.1.17 you can also install HLS from source without checking out the code manually: +You can also install HLS from source without checking out the code manually: ```bash ghcup compile hls -v 1.4.0 8.10.7 ``` From fedc6de230211b12f3cbafe70d9b2ceeb1764515 Mon Sep 17 00:00:00 2001 From: Javier Neira Date: Thu, 23 Sep 2021 13:29:11 +0200 Subject: [PATCH 5/6] Remove specific mention to ghcup --- docs/installation.md | 1 - 1 file changed, 1 deletion(-) diff --git a/docs/installation.md b/docs/installation.md index 035ae8ad36..a369ac5c10 100644 --- a/docs/installation.md +++ b/docs/installation.md @@ -64,7 +64,6 @@ pkg install hs-haskell-language-server to install it. At the moment, HLS installed this way only supports the same GHC version as the ports one. -Since 1.4.0 version you also can install HLS via [ghcup](#ghcup). ## Installation from source From d270801890483554fbfbfacc48d358006e1c24ca Mon Sep 17 00:00:00 2001 From: Javier Neira Date: Thu, 23 Sep 2021 16:01:43 +0200 Subject: [PATCH 6/6] Add link for supported platforms --- docs/installation.md | 2 ++ 1 file changed, 2 insertions(+) diff --git a/docs/installation.md b/docs/installation.md index a369ac5c10..6085c39905 100644 --- a/docs/installation.md +++ b/docs/installation.md @@ -13,6 +13,8 @@ If you are using [`ghcup`](https://www.haskell.org/ghcup/) to manage your instal ghcup install hls ``` +You can check if HLS is available for your platorm via ghcup here: . + You can also install HLS from source without checking out the code manually: ```bash ghcup compile hls -v 1.4.0 8.10.7