mirror of
https://github.com/haskell/ghcide.git
synced 2024-12-15 04:43:41 +03:00
036e3d0002
* Rename haskell-ide-core as hie-core, after discussions with Alan Zimmerman and others * Update the readme to just say how to install
1.1 KiB
1.1 KiB
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 '())