Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add ghcup compile option #2230

Merged
merged 10 commits into from
Oct 4, 2021
19 changes: 15 additions & 4 deletions docs/installation.md
Original file line number Diff line number Diff line change
Expand Up @@ -9,14 +9,23 @@
## 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
```

You can check if HLS is available for your platorm via ghcup here: <https://gitlab.haskell.org/haskell/ghcup-hs#supported-platforms>.

You can also install HLS from source without checking out the code manually:
jneira marked this conversation as resolved.
Show resolved Hide resolved
```bash
ghcup compile hls -v 1.4.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
````

Expand All @@ -39,7 +48,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
```

Expand All @@ -50,13 +59,15 @@ 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.



## Installation from source

### Common pre-requirements
Expand Down