hls-2

HLS utilizes cabal features, in this case the definition of addition source directories. These directories must be specified as strings where the first character of a suggested module name is dropped if 'hs-source-dirs' is assigned simply as './' ('.' was expected). Fix is to canonicalise the path to always include the '/' and then trim it.

ghc-version: 9.2.3

hasbugs-version: 1.0.0

license: Apache-2.0

build-framework: stack

Repository
GitHub Artifacts :

Faults @548ca17c

[
  {
    "endline": 127,
    "file": "plugins/hls-module-name-plugin/src/Ide/Plugin/ModuleName.hs",
    "function": "pathModuleNames",
    "module": "Ide.Plugin.ModuleName",
    "startline": 127
  },
  {
    "endline": 136,
    "file": "plugins/hls-module-name-plugin/src/Ide/Plugin/ModuleName.hs",
    "function": "pathModuleNames",
    "module": "Ide.Plugin.ModuleName",
    "startline": 136
  }
]

Fixes @49373fd0

[
  {
    "endline": 143,
    "file": "plugins/hls-module-name-plugin/src/Ide/Plugin/ModuleName.hs",
    "function": "pathModuleNames",
    "module": "Ide.Plugin.ModuleName",
    "startline": 143
  },
  {
    "endline": 156,
    "file": "plugins/hls-module-name-plugin/src/Ide/Plugin/ModuleName.hs",
    "function": "pathModuleNames",
    "module": "Ide.Plugin.ModuleName",
    "startline": 156
  }
]