Questions about haskell-language-server, or HLS for short, an LSP implementation which provides IDE tooling for Haskell.
Questions tagged [haskell-language-server]
22 questions
1
vote
0 answers
Restrict autocompletion with HLS and vscode
Autocompletion in the Haskell Language Server (with VScode) gives suggestions before a single character in the next word is typed (starts with !!) and adds often non-sense text. How can the useful auto-completion function be limited to start only…

user855443
- 2,596
- 3
- 25
- 37
0
votes
0 answers
How does Haskell language Server manage to work with a project with only standalone haskell file?
I am playing around with the integration of the haskell language server and VsCode. More specifically, I'm going all around to understand the behavior of the HLS.
I have understood so far how it works in the following scenario
Opening a stack…

MaatDeamon
- 9,532
- 9
- 60
- 127
0
votes
1 answer
How to get rid of automatic type annotations in LunarVim from Haskell Language Server?
I use LunarVim for editing Haskell code. Automatic type and import hints are quite annoying. How to turn them off?
For example, after the import Text.ParserCombinators.Parsec import, the following hint is automatically showed right after import…

Natalya M.
- 35
- 4
0
votes
1 answer
"Couldn't load cradle for ghc libdir"
I'm trying to setup haskell-language-server with VS Code. My project is setup differently from most haskell projects, wherein the workspace root (project root) does NOT contain a haskell project. Instead, the haskell project is in a haskell/…

Saurabh Nanda
- 6,373
- 5
- 31
- 60
0
votes
0 answers
Haskell Language Server prompts on nvim persist
I'm using the Haskell language server with coc.nvim with neovim as a dev environment. However, sometimes the prompts proposed by the language server, eg. "[typecheck -Wunused-matches] ..." persist on the display overlayed over the nvim window.
I was…

adi
- 1
- 1
0
votes
0 answers
Using VSCode with Haskell, ghcup and stack - hls crashes with newer versions of ghc
I am using VSCode with the Haskell extension. I have ghcup installed with the following installed:
Stack 2.7.5
HLS 1.7.0.0
Cabal 3.6.2.0
GHC 9.0.2 (set)
GHC 8.10.7
If I have a stack.yaml with lts-18.28 the haskell-language-server boots and the hover…

b1g3ar5
- 53
- 2
- 4
0
votes
1 answer
Haskell Extension for Visual Studio Code starts a new Haskell Language Server for each file
I recently installed the Haskell extension in Visual Studio Code which is powered by the Haskell Language Server. Each time I open a different Haskell file in the editor a new process named "haskell-language-server-1.0.0-linux-8.6.5" is created. The…

user7375077
- 95
- 7