Hlint suggestion produces invalid code (breaks block identation) (revisit after mpickering/apply-refact#95) #593
Labels
component: hls-hlint-plugin
status: blocked
Not actionable, because blocked by upstream/GHC etc.
type: bug
Something isn't right: doesn't work as intended, documentation is missing/outdated, etc..
Your environment
Output of
haskell-language-server --probe-tools
orhaskell-language-server-wrapper --probe-tools
:haskell-language-server version: 0.6.0.0 (GHC: 8.8.4) (PATH: /home/emlautarom1/.config/Code/User/globalStorage/haskell.haskell/haskell-language-server-0.6.0-linux-8.8.4) (GIT hash: 372a12e797069dc3ac4fa33dcaabe3b992999d7c) Tool versions found on the $PATH cabal: 3.2.0.0 stack: Not found ghc: 8.8.4
Which lsp-client do you use: VSCode
Describe your project (alternative: link to the project): Single
.hs
fileContents of
hie.yaml
: I'm usingimplicit cradle
(nohie.yaml
)Steps to reproduce
hlint
. The resulting code is:Expected behaviour
Applying hints should produce working code. The CLI of
hlint
produces the correct output (it compiles):Actual behaviour
The result of applying the suggestion produces code that does not compile anymore since there's an error on line 3:
parse error on input ‘->’
, since theFalse
andTrue
branches are missing whitespace at the beginning of the line.Include debug information
Execute in the root of your project the command
haskell-language-server --debug .
and paste the logs here:Debug output:
Paste the logs from the lsp-client, e.g. for VS Code
LSP logs:
The text was updated successfully, but these errors were encountered: