Skip to content
This repository was archived by the owner on Oct 7, 2020. It is now read-only.

Commit c1e57f5

Browse files
authored
Merge pull request #1466 from sei40kr/update-spacemacs-inst
Update the instructions for Spacemacs
2 parents a597236 + 03b027d commit c1e57f5

File tree

1 file changed

+2
-32
lines changed

1 file changed

+2
-32
lines changed

README.md

+2-32
Original file line numberDiff line numberDiff line change
@@ -46,7 +46,6 @@ we talk to clients.__
4646
- [Using HIE with Atom](#using-hie-with-atom)
4747
- [Using HIE with Emacs](#using-hie-with-emacs)
4848
- [Using HIE with Spacemacs](#using-hie-with-spacemacs)
49-
- [Using HIE with Spacemacs on Nix Based Projects](#using-hie-with-spacemacs-on-nix-based-projects)
5049
- [Using HIE with Oni](#using-hie-with-oni)
5150
- [Docs on hover/completion](#docs-on-hovercompletion)
5251
- [Contributing](#contributing)
@@ -493,42 +492,13 @@ Install HIE, and then add the following to your `.spacemacs` config,
493492
;; ...
494493
dotspacemacs-configuration-layers
495494
'(
495+
(haskell :variables haskell-completion-backend 'lsp)
496496
lsp
497-
(haskell :variables ;; Or optionally just haskell without the variables.
498-
haskell-completion-backend 'ghci
499-
haskell-process-type 'stack-ghci)
500497
)
501-
dotspacemacs-additional-packages '(
502-
(lsp-haskell :location (recipe :fetcher github :repo "emacs-lsp/lsp-haskell"))
503-
)
504-
;; ...
505498
))
506499
```
507500

508-
and then activate [`lsp-haskell`](https://github.com/emacs-lsp/lsp-haskell) in your `user-config` section,
509-
510-
```lisp
511-
(defun dotspacemacs/user-config ()
512-
"..."
513-
(setq lsp-haskell-process-path-hie "hie-wrapper")
514-
(require 'lsp-haskell)
515-
(add-hook 'haskell-mode-hook #'lsp)
516-
)
517-
```
518-
519-
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).
520-
521-
### Using HIE with Spacemacs on Nix Based Projects
522-
523-
If you use HIE with spacemacs on nix-built haskell projects, you may want to try
524-
out [this spacemacs layer](https://github.com/benkolera/spacemacs-hie-nix). It
525-
has installation instructions which includes a nix expression to install
526-
everything that hie needs in your environment. It wraps the hie binary calls to
527-
use nix-sandbox to find the closest ancestor directory that has nixfiles.
528-
529-
It is still pretty new and may change drastically as the author understands the
530-
lsp, lsp-ui, lsp-haskell, hie stack a bit better. PRs and feedback are very
531-
welcome on the layer's repo if you find it useful and/or lacking in some way.
501+
Now you should be able to use HIE in Spacemacs.
532502

533503
### Using HIE with Oni
534504

0 commit comments

Comments
 (0)