Haskell IDE Core
Our vision is that you should build an IDE by combining:
- hie-bios for determining where your files are, what the dependencies, what extensions are enabled etc.
hie-core- this library - for defining how to type check, when to type check, and producing messages.haskell-lspfor sending those messages to an LSP server.- A VS Code extension, e.g.
extensionin this directory.
There are more details in this blog post.
How to use it
Installing the binary
git clone https://github.com/digital-asset/daml.gitcd daml/compiler/hie-corestack build
Installing the VSCode extension
cd compiler/hie-core/extensionnpm civsce packagecode --install-extension hie-core-0.0.1.vsix
Installing in Emacs
- Install lsp and haskell-lsp
- Add this elisp to your .emacs.el
(require 'lsp)
(require 'lsp-haskell)
(require 'yasnippet)
(add-hook 'haskell-mode-hook #'lsp)
(setq lsp-haskell-process-path-hie "hie-core")
(setq lsp-haskell-process-args-hie '())