Description
Your environment
Which OS do you use? NixOS Linux x86_64
Which version of GHC do you use and how did you install it? 9.8.2 from haskell.nix
How is your project built (alternative: link to the project)? cabal-install
Which LSP client (editor/plugin) do you use? emacs+lsp-mode
Which version of HLS do you use and how did you install it?
Have you configured HLS in any way (especially: a hie.yaml
file)? Yeah just:
cradle:
cabal:
Steps to reproduce
Run HLS with -hi
profiling with the stan plugin enabled. You will notice that that the heap profile shows THUNKs from stan, and that lots of other closures follow the shape of this thunk, suggesting a space leak.
If you run without stan, this goes away.
Debug information
This is the biggest closure size, note that it mirrors the stan closure: