user1900238
user1900238

Reputation: 119

VSCode editor got errors, while using Haskell installed using Stackage

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

Upvotes: 5

Views: 5884

Answers (1)

Llewey
Llewey

Reputation: 9222

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.

Upvotes: 3

Related Questions