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-lspfor sending those messages to an LSP server.- A VS Code extension, e.g.
extensionin 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.
git clone https://github.com/digital-asset/daml.gitcd compiler/haskell-ide-corestack buildcd extensionnpm installcode .- Press F5 to start the extension.
- In the spawned extension, open the folder
haskell-ide-core. - In the preferences, set the Haskell IDE Core executable preference to
stackand the arguments toexec -- ide-demo --ide .ghci - Run the Reload Window command in VS Code.
Now you should have a working IDE dealing with itself.
Installing the IDE permanently
cd compiler/haskell-ide-core/extensionvsce packagecode --install-extension haskell-ide-core-0.0.1.vsix