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
{{ message }}
This repository was archived by the owner on Oct 7, 2020. It is now read-only.
sudo dnf install libicu-devel ncurses-devel# also zlib-devel if not already installed
175
174
```
176
175
177
-
#### Windows-specific pre-requirements (optional)
176
+
#### Windows-specific pre-requirements
178
177
179
-
In order to avoid problems with long paths on Windows you can do the following:
178
+
In order to avoid problems with long paths on Windows you can do either one of the following:
180
179
181
-
1.In the `Local Group Policy Editor`: `Local Computer Policy -> Computer Configuration -> Administrative Templates -> System -> Filesystem` set `Enable Win32 long paths` to `Enabled` (Works
182
-
only for Windows 10).
180
+
1.Clone the `haskell-ide-engine` to a short path, for example the root of your logical drive (e.g. to
181
+
`C:\hie`). If this doesn't work or you want to use a longer path, try the second option.
183
182
184
-
2. Clone the `haskell-ide-engine` to the root of your logical drive (e.g. to
185
-
`C:\hie`)
183
+
2. If the `Local Group Policy Editor` is available on your system, go to: `Local Computer Policy -> Computer Configuration -> Administrative Templates -> System -> Filesystem` set `Enable Win32 long paths` to `Enabled`. If you don't have the policy editor you can use regedit by using the following instructions [here](https://docs.microsoft.com/en-us/windows/win32/fileio/naming-a-file#enable-long-paths-in-windows-10-version-1607-and-later). You also need to configure git to allow longer paths by using unicode paths. To set this for all your git repositories use `git config --system core.longpaths true` (you probably need an administrative shell for this) or for just this one repository use `git config core.longpaths true`.
186
184
187
185
#### Download the source code
188
186
@@ -224,7 +222,7 @@ For brevity, only the `stack`-based commands are presented in the following sect
224
222
225
223
Although you can use hie for stack based projects (those which have a `stack.yaml` in the project base directory) without having cabal installed, you will need it for cabal based projects (with only a `<projectName>.cabal` file or a `cabal.project` one in the project base directory).
226
224
227
-
You can install an appropiate cabal version using stack by running:
225
+
You can install an appropriate cabal version using stack by running:
228
226
229
227
```bash
230
228
stack ./install.hs stack-install-cabal
@@ -590,42 +588,13 @@ Install HIE, and then add the following to your `.spacemacs` config,
and then activate [`lsp-haskell`](https://github.com/emacs-lsp/lsp-haskell) in your `user-config` section,
606
-
607
-
```lisp
608
-
(defun dotspacemacs/user-config ()
609
-
"..."
610
-
(setq lsp-haskell-process-path-hie "hie-wrapper")
611
-
(require 'lsp-haskell)
612
-
(add-hook 'haskell-mode-hook #'lsp)
613
-
)
614
-
```
615
-
616
-
Now you should be able to use HIE in Spacemacs. I still recommend checking out [lsp-ui](https://github.com/emacs-lsp/lsp-ui) and [lsp-mode](https://github.com/emacs-lsp/lsp-mode).
617
-
618
-
### Using HIE with Spacemacs on Nix Based Projects
619
-
620
-
If you use HIE with spacemacs on nix-built haskell projects, you may want to try
621
-
out [this spacemacs layer](https://github.com/benkolera/spacemacs-hie-nix). It
622
-
has installation instructions which includes a nix expression to install
623
-
everything that hie needs in your environment. It wraps the hie binary calls to
624
-
use nix-sandbox to find the closest ancestor directory that has nixfiles.
625
-
626
-
It is still pretty new and may change drastically as the author understands the
627
-
lsp, lsp-ui, lsp-haskell, hie stack a bit better. PRs and feedback are very
628
-
welcome on the layer's repo if you find it useful and/or lacking in some way.
Copy file name to clipboardExpand all lines: docs/Build.md
+1-1Lines changed: 1 addition & 1 deletion
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -38,7 +38,7 @@ Each `stack-*.yaml` contains references to packages in the submodules. Calling `
38
38
39
39
`hie` depends on a correct environment in order to function properly:
40
40
41
-
*`cabal-install`: This dependency is required by `hie` to handle correctly projects that are not `stack` based (without `stack.yaml`). You can install an appropiate version using `stack` with the `stack-install-cabal` target.
41
+
*`cabal-install`: This dependency is required by `hie` to handle correctly projects that are not `stack` based (without `stack.yaml`). You can install an appropriate version using `stack` with the `stack-install-cabal` target.
42
42
* The `hoogle` database: `hoogle generate` needs to be called with the most-recent `hoogle` version.
0 commit comments