apply-refact icon indicating copy to clipboard operation
apply-refact copied to clipboard

Imports get removed when they have unnecessary hiding statements

Open WhatisRT opened this issue 7 years ago • 0 comments

When hlint finds an import that has an unnecessary hiding statement, apply-refact removes the entire statement instead of just removing the unnecessary hidings. For example, in the following code apply-refact removes the entire line which makes the code fail to compile.

import Data.List hiding (sort)

test :: [String]
test = group "aaabb"

WhatisRT avatar Mar 24 '18 01:03 WhatisRT