4
votes

Recently Installed VS Code in my Ubuntu14.04 . Installed Haskell using Stack.

Getting these errors. Kindly help.

Error: Couldn't start ghc-mod process Error: Command failed: ghc-mod version

Error: Cannot hlint the haskell file. The hlint program was not found. Use the 'haskell.hlint.executablePath' setting to configure the location of 'hlint' enter image description here

1

1 Answers

2
votes

It looks like you've installed 2 extensions for vscode, one for linting and one for running ghc-mod, but you don't have hlint or ghc-mod installed.

If you are using this ghc-mod extension, make sure you have ghc-mod installed through cabal or through stack.

IF you are using this linter extension, make sure you have hlint installed through cabal or through stack.

To install with cabal, run: cabal install hlint and cabal install ghc-mod

To install via stack, see the stack documentation.