Skip to content

Commit

Permalink
Add ghcup compile option (#2230)
Browse files Browse the repository at this point in the history
* Add ghcup freebsd and compile options

* Correct hls version

Co-authored-by: Julian Ospald <[email protected]>

* correct ghcup version

Co-authored-by: Julian Ospald <[email protected]>

* Avoid historical remarks

* Remove specific mention to ghcup

* Add link for supported platforms

Co-authored-by: Julian Ospald <[email protected]>
Co-authored-by: mergify[bot] <37929162+mergify[bot]@users.noreply.github.com>
  • Loading branch information
3 people authored Oct 4, 2021
1 parent edf7be5 commit 21c42d5
Showing 1 changed file with 15 additions and 4 deletions.
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:
```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

0 comments on commit 21c42d5

Please sign in to comment.