Closed
Description
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