An Emacs Lisp library for interacting with a haskell-ide-engine server using Microsoft's Language Server Protocol.
The library is designed to integrate with existing Emacs IDE frameworks (completion-at-point, xref (beginning with Emacs 25.1), flycheck, haskell-mode, intero, etc).
This package is still under development, and is not recommended for daily use.
Clone this repository, https://github.com/emacs-lsp/lsp-mode and https://github.com/emacs-lsp/lsp-ui to suitable paths, and add
(add-to-list 'load-path "<path to lsp-haskell>")
(add-to-list 'load-path "<path to lsp-mode>")
(add-to-list 'load-path "<path to lsp-ui>")
(require 'lsp-ui)
(require 'lsp-haskell)
(add-hook 'lsp-mode-hook 'lsp-ui-mode)
(add-hook 'haskell-mode-hook #'lsp-haskell-enable)
(add-hook 'haskell-mode-hook 'flycheck-mode)
to your .emacs.
Note: All three packages are also available via MELPA.
It needs the HIE server in your path, so either
git clone https://github.com/haskell/haskell-ide-engine
cd haskell-ide-engine
stack install
Or of you are on linux (only place it has been tested, reports please)
git clone https://github.com/haskell/haskell-ide-engine
cd haskell-ide-engine
make
This will build executables called hie-8.0.2
, hie-8.2.2
etc which can be selected by usingM-x customize
for lsp-haskell