Emacs
Credits
- https://github.com/tmphey
- @nymeron#8182
This guide assumes that you've completed the steps described in Prerequisites.
- If you're using
nix-shell
, make sure you launch your editor from the command line so it can inherit$PATH
- Install
haskell-mode
viaM-x RET package-install RET haskell-mode RET
- Install
lsp-mode
viaM-x RET package-install RET lsp-mode RET
- Install
lsp-haskell
viaM-x RET package-install RET lsp-haskell RET
- Edit your
.emacs
file - Close the editor and re-open it in the project folder
Note: if you're using
nix-shell
, make sure to run it first.
If everything is fine you should get auto-completion and other features working 🎉