From e143c06697b08f97dbf954e4b3a1025a3bce469b Mon Sep 17 00:00:00 2001 From: why-not-try-calmer Date: Thu, 16 Jun 2022 10:57:50 +0200 Subject: [PATCH] VSCode integration Typo --- docs/install.md | 8 ++++++++ 1 file changed, 8 insertions(+) diff --git a/docs/install.md b/docs/install.md index 29f9b49..c0c5bbc 100644 --- a/docs/install.md +++ b/docs/install.md @@ -200,6 +200,14 @@ export PATH="$HOME/.cabal/bin:$HOME/.ghcup/bin:$PATH" See [ghcup.vim](https://github.com/hasufell/ghcup.vim). +## VSCode integration +The developers of the Haskell Language Server offer an [extension](https://github.com/haskell/vscode-haskell) tightly integrated with the [Haskell Language Server](https://github.com/haskell/haskell-language-server). To get started: + +1. Install GHCup. During installation, opt in to install the Haskell Language Server (HLS). +2. Install the extension (from VSCode: Ctrl + P and then `ext install haskell.haskell`). +3. Make sure your project uses the GHC version installed from GHCup (otherwise HLS is likely to fail on launch): + - instructions for [stack](https://docs.haskellstack.org/en/stable/yaml_configuration/#system-ghc) + ## Get help * [Libera IRC chat on #haskell-ghcup or #haskell](https://kiwiirc.com/nextclient/irc.libera.chat/?nick=Guest%7C?#haskell,#haskell-ghcup)