Skip to content

Commit

Permalink
Fix crash on completion with type family (#2569)
Browse files Browse the repository at this point in the history
  • Loading branch information
guibou authored Jan 10, 2022
1 parent e622744 commit aa5379d
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion ghcide/src/Development/IDE/Plugin/Completions/Logic.hs
Original file line number Diff line number Diff line change
Expand Up @@ -445,7 +445,7 @@ localCompletionsForParsedModule uri pm@ParsedModule{pm_parsed_source = L _ HsMod
| L _ (ClassOpSig _ _ ids typ) <- tcdSigs
, id <- ids]
TyClD _ x ->
let generalCompls = [mkComp id cl (Just $ ppr $ tcdLName x)
let generalCompls = [mkComp id cl (Just $ ppr $ tyClDeclLName x)
| id <- listify (\(_ :: Located(IdP GhcPs)) -> True) x
, let cl = occNameToComKind Nothing (rdrNameOcc $ unLoc id)]
-- here we only have to look at the outermost type
Expand Down

0 comments on commit aa5379d

Please sign in to comment.