Skip to content

Applying hlint deindents where clause and remove comments #597

Closed
@srid

Description

@srid

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

  1. Open Markdown.hs in neuron repo
  2. Apply eta reduction hlint for partitionMarkdown

Expected behaviour

only hlint is applied

Actual behaviour

where clause gets deindented. see gif attachment.
hls-wherebug

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>

Metadata

Metadata

Assignees

No one assigned

    Labels

    component: hls-hlint-pluginstatus: blockedNot actionable, because blocked by upstream/GHC etc.type: bugSomething isn't right: doesn't work as intended, documentation is missing/outdated, etc..

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions