Skip to content
| Marketplace
Sign in
Visual Studio Code>Programming Languages>haskell-ghcidNew to Visual Studio Code? Get it now.
haskell-ghcid

haskell-ghcid

Neil Mitchell

|
30,380 installs
| (2) | Free
Integrate ghcid into VS Code
Installation
Launch VS Code Quick Open (Ctrl+P), paste the following command, and press enter.
Copied to clipboard
More Info

VSCode haskell-ghcid

Shows errors and warnings from ghcid in the Problems pane and inline as red squiggles in the editor. Can also provide hovers, jump to definition, and find references. Updates when files are saved.

Usage

Simply run ghcid -o ghcid.txt! -o instructs ghcid to write its output to a file every time it recompiles your code. This extension will automatically find and watch that file for updates.

Or run ghcid --server to get diagnostics, hovers, file-local jump to definition, and file-local find references. This extension will automatically find and connect to the server via a local socket.

Spawning ghcid in VS Code

Alternatively, you can tell VS Code to spawn ghcid in an embedded terminal:

  • Get your project working so typing ghcid in the project root works. If you need to pass special flags to ghcid, create a .ghcid file in the project root with the extra flags, e.g. --command=cabal repl or similar.
  • Run the VS Code command (Ctrl+Shift+P) named "Start Ghcid".

Requirements

Requires ghcid to be installed and on your $PATH.

Local installation

Run: npm update npm install npm install -g vsce rm haskell-ghcid-.vsix # optional vsce package code --install-extension haskell-ghcid-.vsix

Making releases of this extension

  • Create a personal token following the instructions, which involves visiting this page.
  • Run vsce publish -p <token>.

Authors

  • @ndmitchell Neil Mitchell
  • @chrismwendt Chris Wendt
  • Contact us
  • Jobs
  • Privacy
  • Manage cookies
  • Terms of use
  • Trademarks
  • Your Privacy Choices
  • Consumer Health Privacy
© 2026 Microsoft