daml/compiler/hie-core
Neil Mitchell 3e1083e1fe Rename haskell-ide-core to hie-core (#1809)
* Rename haskell-ide-core as hie-core, after discussions with Alan Zimmerman and others

* Update the readme to just say how to install
2019-06-21 17:07:09 +00:00
..
extension Rename haskell-ide-core to hie-core (#1809) 2019-06-21 17:07:09 +00:00
src/Development/IDE Rename haskell-ide-core to hie-core (#1809) 2019-06-21 17:07:09 +00:00
test Rename haskell-ide-core to hie-core (#1809) 2019-06-21 17:07:09 +00:00
BUILD.bazel Rename haskell-ide-core to hie-core (#1809) 2019-06-21 17:07:09 +00:00
hie.cabal Rename haskell-ide-core to hie-core (#1809) 2019-06-21 17:07:09 +00:00
README.md Rename haskell-ide-core to hie-core (#1809) 2019-06-21 17:07:09 +00:00
stack.yaml Rename haskell-ide-core to hie-core (#1809) 2019-06-21 17:07:09 +00:00

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

  1. git clone https://github.com/digital-asset/daml.git
  2. cd daml/compiler/hie-core
  3. stack build

Installing the VSCode extension

  1. cd compiler/hie-core/extension
  2. vsce package
  3. code --install-extension hie-core-0.0.1.vsix

Installing in Emacs

  1. Install lsp and haskell-lsp
  2. 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 '())