You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
-[Test your hacked HLS in your editor](#test-your-hacked-hls-in-your-editor)
78
+
-[Adding support for a new editor](#adding-support-for-a-new-editor)
57
79
58
80
## Features
59
81
@@ -116,6 +138,18 @@ If you are using Visual Studio Code, the [Haskell extension](https://marketplace
116
138
There are pre-built binaries available from the [releases page](https://github.com/haskell/haskell-language-server/releases) for Linux, Windows and macOS.
117
139
To install, download the `haskell-language-server-wrapper` executable for your platform as well as any `haskell-language-server` executables for the GHC versions you plan on working with, and either put them on your PATH or point your client to them.
118
140
141
+
### Arch Linux
142
+
143
+
If you are using Arch Linux with **dynamically linked** Haskell packages from `pacman`,
144
+
you can install the latest pre-compiled version of `haskell-language-server` from [[community]](https://archlinux.org/packages/community/x86_64/haskell-language-server/):
145
+
146
+
```
147
+
sudo pacman -S haskell-language-server
148
+
```
149
+
150
+
In this case, `haskell-language-server` is compiled against the GHC distributed to Arch Linux, so you will need maintain a system wide Haskell development environment, and install GHC from `pacman` as well.
151
+
See [ArchWiki](https://wiki.archlinux.org/index.php/Haskell) for the details of Haskell infrastructure on Arch Linux.
152
+
119
153
### Installation from source
120
154
121
155
#### Common pre-requirements
@@ -437,15 +471,15 @@ Most editors provide a Haskell-specific extension that provides support for laun
437
471
Editors typically assume that you have already installed `haskell-language-server` (see above) and that the installation script put the `haskell-language-server` and `haskell-language-server-wrapper` binaries in your `PATH` (usually `~/.local/bin` or `~/.cabal/bin` on Linux and macOS, `%APPDATA%\local\bin` or `%APPDATA%\cabal\bin` on Windows).
438
472
The exception is VS Code, which can automatically install the binaries if they are not installed already.
439
473
440
-
### Using Haskell Language Server with VS Code
474
+
### VS Code
441
475
442
476
Install from
443
477
[the VSCode marketplace](https://marketplace.visualstudio.com/items?itemName=haskell.haskell), or manually from the repository [vscode-haskell](https://github.com/haskell/vscode-haskell).
444
478
The `haskell-language-server` and `haskell-language-server-wrapper` binaries will be automatically downloaded on an ad-hoc basis, but if you have them already installed on your PATH then it will just use them instead.
445
479
446
480
Configuration is done via the "Haskell" section of "Settings".
447
481
448
-
### Using Haskell Language Server with Sublime Text
482
+
### Sublime Text
449
483
450
484
- Install [LSP](https://packagecontrol.io/packages/LSP) using [Package Control](https://packagecontrol.io/)
451
485
- From Sublime Text, go to Preferences and search for LSP Settings
@@ -471,7 +505,7 @@ You should have these features available:
471
505
2. LSP: Show Diagnostics will show a list of hints and errors
472
506
3. LSP: Format Document will prettify the file
473
507
474
-
### Using Haskell Language Server with Vim or Neovim
508
+
### Vim or Neovim
475
509
476
510
You can use [Coc](https://github.com/neoclide/coc.nvim), [LanguageClient-neovim](https://github.com/autozimu/LanguageClient-neovim)
477
511
or any other Vim Language server protocol client.
@@ -560,15 +594,15 @@ let g:LanguageClient_rootMarkers = ['*.cabal', 'stack.yaml']
560
594
Further configuration can be done by pointing the [`g:LanguageClient_settingsPath`](https://github.com/autozimu/LanguageClient-neovim/blob/0e5c9546bfddbaa2b01e5056389c25aefc8bf989/doc/LanguageClient.txt#L221)
561
595
variable to the file in which you want to keep your LSP settings.
562
596
563
-
### Using Haskell Language Server with Atom
597
+
### Atom
564
598
565
599
Install the two Atom packages [atom-ide-ui](https://atom.io/packages/atom-ide-ui) and [haskell](https://atom.io/packages/haskell),
Emacs support is provided by a combination of the following packages:
574
608
@@ -584,7 +618,7 @@ various parts of the Emacs integration.
584
618
In particular, `lsp-haskell` provides customization options for the `haskell-language-server`-specific parts,
585
619
such as the path to the server executable.
586
620
587
-
#### Using haskell-language-server with [doom-emacs](https://github.com/hlissner/doom-emacs/tree/develop/modules/lang/haskell#module-flags)
0 commit comments