@@ -86,7 +86,7 @@ atPoint IdeOptions{..} tcs srcSpans pos = do
86 isTypeclassDeclSpan :: SpanInfo -> Bool
86 isTypeclassDeclSpan :: SpanInfo -> Bool
87 isTypeclassDeclSpan spanInfo =
87 isTypeclassDeclSpan spanInfo =
88 case getNameM (spaninfoSource spanInfo) of
88 case getNameM (spaninfoSource spanInfo) of
89− Just name -> any (`isInfixOf` show name) ["==", "showsPrec"]
89+ Just name -> any (`isInfixOf` getOccString name) ["==", "showsPrec"]
90 Nothing -> False
90 Nothing -> False
92locationsAtPoint :: forall m . MonadIO m => (FilePath -> m (Maybe HieFile)) -> IdeOptions -> HscEnv -> Position -> [SpanInfo] -> m [Location]
92locationsAtPoint :: forall m . MonadIO m => (FilePath -> m (Maybe HieFile)) -> IdeOptions -> HscEnv -> Position -> [SpanInfo] -> m [Location]