curl -sSL https://get.haskellstack.org/ | sh
stack upgrade
Then ensure ~/.local/bin
is on your $PATH
.
- Check out the project source from
git clone https://github.com/digital-asset/ghcide.git
cd
into the project you just checked out- Run
stack install
to compile GHCIDE and make it available to all Stack projects
- Install VSCode for Mac
- Install the GHCIDE extension
cd
into your project and run stack build
. This will make Stack artefacts available for GHCIDE to use.
You'll have to re-run this step every time dependencies change.
Note the 'processing' message in the bottom left of your IDE - this is GHCIDE working things out. Wait until it's finished.
- Syntax will be highlighted
- You can hover over anything to see its type and where it's imported from
- You can Ctrl+Click to go a definition (at least if it's local to the project)
For Windows, you'll usually need to put
C:\Users\$NAME\AppData\Roaming\local\bin
on the PATH, to make installed Stack packages available globally