38 questions
0
votes
0
answers
34
views
HLS "Couldn't match type" / version mismatch on Windows 10 while Cabal builds fine
OK, I keep getting HLS errors even though cabal builds fine.
Environment:
OS: Windows 10 Pro
GHC: 9.6.7
Cabal: 3.12.1.0
I'm on Windows 10 Pro Education, using GHC 9.6.7, and cabal 3.12.1.0
I'm ...
0
votes
1
answer
150
views
HLS running from terminal and getting cabal error on fresh new project
I'm using HLS from terminal with the command haskell-language-server-9.12.2. I'm getting the following error:
Step 4/4: Type checking the files
2025-12-15T23:04:57.109846Z | Info | Cradle path: app/...
2
votes
1
answer
155
views
Problems setting up haskell-tools.nvim on NixOS
I'm trying to setup the Neovim plugin https://github.com/mrcjkb/haskell-tools.nvim
for a while now and I don't see any progress.
I mostly want this plugin for Haskell CodeLenses, so that I can write a ...
1
vote
1
answer
83
views
Error with HLS Visual Studio Code Splice when code contains error?
I am using the Visual Studio Code Haskell extension. The Haskell Language Server (hls) docs state that it has a feature that:
Evaluates a Template Haskell splice and inserts the resulting code in its ...
2
votes
0
answers
158
views
Configuring Haskell Language Server for GHC's javascript backend
I'm trying out the haskell-halogen framework that compiles to javascript via GHC's JS backend.
I'm able to compile the sample project from the library author with the following config:
GHCup 0.1.40.0
...
0
votes
0
answers
58
views
haskell-language-server error: ghcide failed to load packages
The project is built with stack. HLS works well on the tests after running stack build. But if I run stack build --test, hls fails on the test modules: ghcide compiled with GHC 8.10 failed to load ...
-2
votes
1
answer
229
views
Instalation problem with mrcjkb/haskell-tools.nvim plugin
So, i was trying to use the package in the title, but its not working by nothing. I did how they said to do in the github link, but didnt work. Ive try to use a config exacly as a friend which get to ...
4
votes
1
answer
376
views
VS Code Haskell Language Server: Go to definition does not work (but peek does)
I have a project set up in VS-code with the HLS extenion.
For functions that are imported I can hoover over it or click "Peek" in order to see it's type. But when I click "Go to ...
1
vote
1
answer
263
views
Why Haskell Language Server extension in VSCode doesn't recognize module when importing it?
Why it highlights Data.MultiSet?
package.yaml:
name: anagram
version: 1.4.0.8
dependencies:
- base
- multiset
- text
- containers
library:
exposed-modules: Anagram
source-dirs: src
ghc-...
1
vote
0
answers
79
views
How to configure HLS in nixpkgs?
When using an older nixpkgs (2022), one can do the following to customize pkgs.haskellPackages.haskell-language-server to, for example, disable ormolu and fourmolu features:
with pkgs.haskell.lib....
0
votes
1
answer
163
views
How to automatically allow the execution of code action from HLS in emacs?
When I try to execute any kind of code actions from eglot connected to hls within emacs, I have to accept by hand the execution of the code action in the following popup:
I find this behaviour to be ...
0
votes
1
answer
1k
views
How to stop LunarVim Mason from automatically installing a language server?
I am using LunarVim in a Nix environment to program Haskell. The environment has a haskell-language-server of its own, which starts promptly when I open a file by LunarVim. The problem is that after ...
2
votes
0
answers
383
views
HLS can't find Main.hs for Haskell default project in VS Code, despite being listed in .cabal
I had a working Haskell Language Server/VS Code integration, and it just stopped working, and now even a fresh install of VS Code, Haskell (via GHCup), the HLS and a fresh project, I get the error ...
2
votes
1
answer
238
views
How to setup MINGW environment variables for Haskell language server in vscode?
I have a Haskell project on Windows. The project depends on diagrams-cairo, which depends on GTK+.
I have successfully built this project (via msys64+MINGW) and it runs nicely.
The problem is how to ...
0
votes
1
answer
183
views
How do I tell HLS to use hls-class-plugin?
I was looking for how to discover the names of the methods of a type class in a Haskell file using the HLS.
Searching around I found this page where the code action "Add missing class methods&...