File tree 1 file changed +4
-4
lines changed
ghcide/src/Development/IDE/Plugin/CodeAction 1 file changed +4
-4
lines changed Original file line number Diff line number Diff line change @@ -203,8 +203,8 @@ extendImportTopLevel df idnetifier (L l it@ImportDecl {..})
203
203
rdr <- liftParseAST df idnetifier
204
204
205
205
let alreadyImported =
206
- showNameWithoutUniques rdr `elem`
207
- map (showNameWithoutUniques @ RdrName ) (listify (const True ) lies)
206
+ showNameWithoutUniques (occName (unLoc rdr)) `elem`
207
+ map (showNameWithoutUniques @ OccName ) (listify (const True ) lies)
208
208
when alreadyImported $
209
209
lift (Left $ idnetifier <> " already imported" )
210
210
@@ -255,8 +255,8 @@ extendImportViaParent df parent child (L l it@ImportDecl {..})
255
255
childRdr <- liftParseAST df child
256
256
257
257
let alreadyImported =
258
- showNameWithoutUniques childRdr `elem`
259
- map (showNameWithoutUniques @ RdrName ) (listify (const True ) lies')
258
+ showNameWithoutUniques(occName (unLoc childRdr)) `elem`
259
+ map (showNameWithoutUniques @ OccName ) (listify (const True ) lies')
260
260
when alreadyImported $
261
261
lift (Left $ child <> " already included in " <> parent <> " imports" )
262
262
You can’t perform that action at this time.
0 commit comments