PureScript includes the IDE tools (
psc-ide-client) with the compiler package since 0.8.2.
The purescript package on npm for version 0.8.2 doesn't ship with
So if you're using PureScript by globally installing it from npm (
npm install -g purescript), you may find that your editor integration will not work.
To fix this, you'll need to build and install PureScript from sources. It can be a pain to use Cabal for this, so we will use Stack. But since PureScript has not updated to 0.8.2 yet in the LTS Stackage, we will need to tweak the stack's global config a bit.
- Uninstall npm installation of PureScript:
npm uninstall purescript
- Install Stack
- In your
~/.stack/global/stack.yaml, add this line:
stack install purescript
- Check that it worked by running