A library for building Haskell IDE tooling
Go to file
2019-06-15 16:11:20 +02:00
extension Describe how to install the IDE (#1686) 2019-06-15 13:23:59 +02:00
src/Development/IDE Don't error on goto definition for another package (#1687) 2019-06-15 16:11:20 +02:00
test Don't error on goto definition for another package (#1687) 2019-06-15 16:11:20 +02:00
.ghci Add a haskell-ide-core demo project (#1251) 2019-05-20 16:36:08 +01:00
BUILD.bazel Initial stab at integrating hie-bios (#1685) 2019-06-15 10:29:40 +02:00
haskell-ide-core.cabal Describe how to install the IDE (#1686) 2019-06-15 13:23:59 +02:00
README.md Describe how to install the IDE (#1686) 2019-06-15 13:23:59 +02:00
stack.yaml Initial stab at integrating hie-bios (#1685) 2019-06-15 10:29:40 +02: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.
  • haskell-ide-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

Let's assume you want to load the haskell-ide-core source code in a VS Code IDE.

  1. git clone https://github.com/digital-asset/daml.git
  2. cd compiler/haskell-ide-core
  3. stack build
  4. cd extension
  5. npm install
  6. code .
  7. Press F5 to start the extension.
  8. In the spawned extension, open the folder haskell-ide-core.
  9. In the preferences, set the Haskell IDE Core executable preference to stack and the arguments to exec -- ide-demo --ide .ghci
  10. Run the Reload Window command in VS Code.

Now you should have a working IDE dealing with itself.

Installing the IDE permanently

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