Closed
Description
Applying a hlint fix messes up the where
block in the function. See gif screenshot below.
Your environment
Output of haskell-language-server --probe-tools
or haskell-language-server-wrapper --probe-tools
:
./haskell-language-server-8.8.4 --probe-tools
haskell-language-server version: 0.6.0.0 (GHC: 8.8.4) (PATH: /home/srid/.local/bin/haskell-language-server-8.8.4) (GIT hash: 61c69fd387281c2222f75f13542eaa2e91cbc1b1)
Tool versions found on the $PATH
cabal: Not found
stack: 2.5.1
ghc: Not found
Which lsp-client do you use:
VSCode w/ http://github.com/srid/neuron (Markdown.hs)
Contents of hie.yaml
:
cradle:
cabal:
- path: "./neuron/src/lib"
component: "lib:neuron"
- path: "./neuron/src/app"
component: "lib:neuron-app-lib"
- path: "./neuron/src/exe"
component: "exe:neuron"
- path: "./neuron/test"
component: "test:neuron-test"
Steps to reproduce
- Open Markdown.hs in neuron repo
- Apply eta reduction hlint for
partitionMarkdown
Expected behaviour
only hlint is applied
Actual behaviour
where clause gets deindented. see gif attachment.
Include debug information
Execute in the root of your project the command haskell-language-server --debug .
and paste the logs here:
Debug output:
<paste your logs here>
Paste the logs from the lsp-client, e.g. for VS Code
LSP logs:
<paste your logs here>