Description
Your environment
Which OS do you use?
Which version of GHC do you use and how did you install it?
debian 11 actualized
ghc 8.10.7 installed with ghcup
3.6.2.0 of the Cabal library
I have in a directory Lib a file Example.hs in my project; it compiles without error.
In VScode I see a problem:
Set module name to ib.Example
above the line
module Lib.Example
This is systematic and happens with all my modules.
Which LSP client (editor/plugin) do you use?
Which version of HLS do you use and how did you install it?
Version: 1.69.1
Commit: b06ae3b2d2dbfe28bca3134cc6be65935cdfea6a
Date: 2022-07-12T08:28:29.328Z
Electron: 18.3.5
Chromium: 100.0.4896.160
Node.js: 16.13.2
V8: 10.0.139.17-electron.0
OS: Linux x64 5.10.0-16-amd64
Have you configured HLS in any way (especially: a hie.yaml
file)?
no hie.yaml file - rely on automatic one
The Haskell Language server with the plugin for VScode works well - except it drops the first character of the directory for a suggested module name.
For example:
I have in a directory Lib a file Example.hs in my project; it compiles without error.
In VScode I see a problem:
Set module name to ib.Example
above the line
module Lib.Example
This is systematic and happens with all my modules. Is there a problem in any of my setup files and which files should I check?
Steps to reproduce
open a file, see the suggestion for a change in the module name.
Expected behaviour
no suggestion - resp. a correct suggestion (which would then not be made). correct means with the first character of the directory name. (e.g. Lib, when directory is Lib and current suggestion is ib
).