Skip to content

Syntax error after hlint refactor #1844

Closed
@augustss

Description

@augustss

Applying a refactoring from hlint produces a syntactically wrong result.

Your environment

myproject$ haskell-language-server --probe-tools
haskell-language-server version: 1.1.0.0 (GHC: 8.10.4) (PATH: C:\Users\lennart.augustsson\AppData\Roaming\cabal\bin\haskell-language-server.exe)
Tool versions found on the $PATH
cabal:          3.4.0.0
stack:          Not found
ghc:            8.10.4

Which OS do you use:
Windows

Which lsp-client do you use:
emacs

Steps to reproduce

Use this file:

module M where
import GHC.Stack
foo :: (HasCallStack) => Int
foo = undefined

Apply the suggest refactoring to remove redundant parens.

Expected behaviour

The result should be

foo :: HasCallStack => Int

Actual behaviour

The result is

foo :: (HasCallStack => Int

Metadata

Metadata

Assignees

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