Skip to content

Commit aa5379d

Browse files
authored
Fix crash on completion with type family (#2569)
1 parent e622744 commit aa5379d

File tree

1 file changed

+1
-1
lines changed
  • ghcide/src/Development/IDE/Plugin/Completions

1 file changed

+1
-1
lines changed

ghcide/src/Development/IDE/Plugin/Completions/Logic.hs

+1-1
Original file line numberDiff line numberDiff line change
@@ -445,7 +445,7 @@ localCompletionsForParsedModule uri pm@ParsedModule{pm_parsed_source = L _ HsMod
445445
| L _ (ClassOpSig _ _ ids typ) <- tcdSigs
446446
, id <- ids]
447447
TyClD _ x ->
448-
let generalCompls = [mkComp id cl (Just $ ppr $ tcdLName x)
448+
let generalCompls = [mkComp id cl (Just $ ppr $ tyClDeclLName x)
449449
| id <- listify (\(_ :: Located(IdP GhcPs)) -> True) x
450450
, let cl = occNameToComKind Nothing (rdrNameOcc $ unLoc id)]
451451
-- here we only have to look at the outermost type

0 commit comments

Comments
 (0)