Skip to content

Commit 21c42d5

Browse files
jneirahasufellmergify[bot]
authored
Add ghcup compile option (#2230)
* 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>
1 parent edf7be5 commit 21c42d5

File tree

1 file changed

+15
-4
lines changed

1 file changed

+15
-4
lines changed

docs/installation.md

Lines changed: 15 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -9,14 +9,23 @@
99
## ghcup
1010

1111
If you are using [`ghcup`](https://www.haskell.org/ghcup/) to manage your installations, you can install `haskell-language-server` with
12-
```
12+
```bash
1313
ghcup install hls
1414
```
1515

16+
You can check if HLS is available for your platorm via ghcup here: <https://gitlab.haskell.org/haskell/ghcup-hs#supported-platforms>.
17+
18+
You can also install HLS from source without checking out the code manually:
19+
```bash
20+
ghcup compile hls -v 1.4.0 8.10.7
21+
```
22+
23+
Check `ghcup compile hls --help` for a full list of compilation options.
24+
1625
## chocolatey
1726

1827
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
19-
```
28+
```bash
2029
choco install haskell-language-server
2130
````
2231

@@ -39,7 +48,7 @@ Its size is relatively large (approx. 900 MB), but if this is a problem for you,
3948
Alternatively, if you want to use **dynamically linked** Haskell packages from `pacman`,
4049
you can install the latest pre-compiled version of `haskell-language-server` from [[community]](https://archlinux.org/packages/community/x86_64/haskell-language-server/):
4150

42-
```
51+
```bash
4352
sudo pacman -S haskell-language-server
4453
```
4554

@@ -50,13 +59,15 @@ See [ArchWiki](https://wiki.archlinux.org/index.php/Haskell) for the details of
5059

5160
HLS is available for installation from official binary packages. Use
5261

53-
```
62+
```bash
5463
pkg install hs-haskell-language-server
5564
```
5665

5766
to install it. At the moment, HLS installed this way only supports the same GHC
5867
version as the ports one.
5968

69+
70+
6071
## Installation from source
6172

6273
### Common pre-requirements

0 commit comments

Comments
 (0)