|
5 | 5 | This extension adds language support for [Haskell](https://haskell.org), powered by the [Haskell Language Server](https://github.com/haskell/haskell-language-server).
|
6 | 6 | As almost all features are provided by the server you might find interesting read its [documentation](https://haskell-language-server.readthedocs.io).
|
7 | 7 |
|
| 8 | +## Setup |
| 9 | + |
| 10 | +This Extension comes with "batteries"-included and can manage your Haskell Language Server installations for you, |
| 11 | +powered by [GHCup](https://www.haskell.org/ghcup/). |
| 12 | + |
8 | 13 | ## Features
|
9 | 14 |
|
10 | 15 | You can watch demos for some of these features [here](https://haskell-language-server.readthedocs.io/en/latest/features.html#demos).
|
@@ -71,13 +76,13 @@ The environment _only will be visible for the lsp server_, not for other extensi
|
71 | 76 |
|
72 | 77 | ### Downloaded binaries
|
73 | 78 |
|
74 |
| -This extension will download `haskell-language-server` binaries either via an internal ghcup (it will download it automaticlaly) |
| 79 | +This extension will download `haskell-language-server` binaries either via an internal ghcup (it will download it automatically) |
75 | 80 | or via a system ghcup (which must be present), unless you set the config option `haskell.manageHLS` to `PATH` (the extension
|
76 | 81 | will ask you on first start).
|
77 | 82 |
|
78 | 83 | It will then download the newest version of haskell-language-server which has support for the required ghc.
|
79 | 84 | That means it could use an older version than the latest one, without the last features and bug fixes.
|
80 |
| -For example, if a project needs ghc-8.10.4 the extension will download and use haskell-language-server-1.4.0, the lastest version which supported ghc-8.10.4. Even if the lastest global haskell language-server version is 1.5.1. |
| 85 | +For example, if a project needs ghc-8.10.4 the extension will download and use haskell-language-server-1.4.0, the latest version which supported ghc-8.10.4. Even if the latest global haskell language-server version is 1.5.1. |
81 | 86 |
|
82 | 87 | If you have disk space issues and use system ghcup, check `ghcup gc --help`.
|
83 | 88 | If you have disk space issues and use the internal ghcup, check the following directories, depending on your platform
|
@@ -142,13 +147,13 @@ Please include the output when filing any issues on the [haskell-language-server
|
142 | 147 |
|
143 | 148 | - Sometimes the language server might get stuck in a rut and stop responding to your latest changes.
|
144 | 149 | Should this occur you can try restarting the language server with <kbd>Ctrl</kbd> <kbd>shift</kbd> <kbd>P</kbd>/<kbd>⌘</kbd> <kbd>shift</kbd> <kbd>P</kbd> > Restart Haskell LSP Server.
|
145 |
| - |
| 150 | + |
146 | 151 | #### `Cradle requires ghc/cabal/stack but it isn't installed`
|
147 | 152 |
|
148 | 153 | - In Linux/MacOS systems, opening vscode in the windows system could not use the `$PATH` set in the shell
|
149 | 154 | so it will not see required tools as ghc, cabal or stack. This usually happens if you have installed them
|
150 |
| - via ghcup. |
151 |
| -- It could be fixed changing the `$PATH` variable in the init config file used by the windows system |
| 155 | + via ghcup. |
| 156 | +- It could be fixed changing the `$PATH` variable in the init config file used by the windows system |
152 | 157 | (f.e. `~/.profile`, but i can vary depending on your system setup).
|
153 | 158 | - See [this stackoverflow question](https://stackoverflow.com/questions/43983718/set-global-path-environment-variable-in-vs-code) for more tricks.
|
154 | 159 |
|
|
0 commit comments