rikvdkleij / intellij-haskell

IntelliJ plugin for Haskell
https://rikvdkleij.github.io/intellij-haskell/
Apache License 2.0
1.31k stars 94 forks source link

HLint quick fix replacing wrongly #630

Closed andipabst closed 3 years ago

andipabst commented 3 years ago

Quick fixes from HLint are replacing the code in the wrong place.

Example: In return $ (), HLint marks the $ and proposes "Redundant $, change to `return ()`" as a quick fix. If I accept the quick fix, I would expect the code to be return () afterwards. Instead it is return return () (), so the $ is replaced, instead of the whole line.

rikvdkleij commented 3 years ago

Thanks for reporting!

This is a known issue and fixed in next version.

andipabst commented 3 years ago

Oh cool, thank you!

rikvdkleij commented 3 years ago

Should be fixed in beta85, https://github.com/rikvdkleij/intellij-haskell/releases/tag/v1.0.0-beta85