@@ -2,8 +2,8 @@
3Our vision is that you should build an IDE by combining:
3Our vision is that you should build an IDE by combining:
5−* [hie-bios](https://github.com/mpickering/haskell-ide-engine/tree/hie-bios/hie-bios) for determining where your files are, what the dependencies, what extensions are enabled etc.
5+* [hie-bios](https://github.com/mpickering/hie-bios) for determining where your files are, what the dependencies, what extensions are enabled etc.
6−* `haskell-ide-core` - this library - for defining how to type check, when to type check, and producing messages.
6+* `hie-core` - this library - for defining how to type check, when to type check, and producing messages.
7* `haskell-lsp` for sending those messages to an LSP server.
7* `haskell-lsp` for sending those messages to an LSP server.
8* A VS Code extension, e.g. `extension` in this directory.
8* A VS Code extension, e.g. `extension` in this directory.
@@ -14,26 +14,17 @@ There are more details [in this blog post](https://4ta.uk/p/shaking-up-the-ide).
14### Installing the binary
14### Installing the binary
161. `git clone https://github.com/digital-asset/daml.git`
161. `git clone https://github.com/digital-asset/daml.git`
17−2. `cd daml/compiler/haskell-ide-core`
17+2. `cd daml/compiler/hie-core`
183. `stack build`
183. `stack build`
20−### Using the VSCode extension
20+### Installing the VSCode extension
25−4. Press F5 to start the extension.
26−5. In the spawned extension, open the folder `haskell-ide-core`.
27−6. In the preferences, set the Haskell IDE Core executable preference to `stack` and the arguments to `exec -- ide-demo --lsp .ghci`
28−7. Run the Reload Window command in VS Code.
30−### Installing the VSCode extension permanently
32−1. `cd compiler/haskell-ide-core/extension`
22+1. `cd compiler/hie-core/extension`
332. `vsce package`
232. `vsce package`
34−3. `code --install-extension haskell-ide-core-0.0.1.vsix`
24+3. `code --install-extension hie-core-0.0.1.vsix`
26+### Installing in Emacs
36−### Installing in emacs
371. Install lsp and haskell-lsp
281. Install lsp and haskell-lsp
382. Add this elisp to your .emacs.el
292. Add this elisp to your .emacs.el
@@ -41,6 +32,6 @@ There are more details [in this blog post](https://4ta.uk/p/shaking-up-the-ide).
41(require 'lsp-haskell)
32(require 'lsp-haskell)
42(require 'yasnippet)
33(require 'yasnippet)
43(add-hook 'haskell-mode-hook #'lsp)
34(add-hook 'haskell-mode-hook #'lsp)
44−(setq lsp-haskell-process-path-hie "haskell-ide-core")
35+(setq lsp-haskell-process-path-hie "hie-core")
45(setq lsp-haskell-process-args-hie '())
36(setq lsp-haskell-process-args-hie '())