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.
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 bereturn ()
afterwards. Instead it isreturn return () ()
, so the$
is replaced, instead of the whole line.