mirror of
https://github.com/digital-asset/daml.git
synced 2024-09-20 17:28:46 +03:00
3e1083e1fe
* Rename haskell-ide-core as hie-core, after discussions with Alan Zimmerman and others * Update the readme to just say how to install |
||
---|---|---|
.. | ||
extension | ||
src/Development/IDE | ||
test | ||
BUILD.bazel | ||
hie.cabal | ||
README.md | ||
stack.yaml |
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-lsp
for sending those messages to an LSP server.- A VS Code extension, e.g.
extension
in 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.git
cd daml/compiler/hie-core
stack build
Installing the VSCode extension
cd compiler/hie-core/extension
vsce package
code --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 '())