File tree Expand file tree Collapse file tree 1 file changed +2
-4
lines changed
plugins/hls-cabal-plugin/src/Ide/Plugin Expand file tree Collapse file tree 1 file changed +2
-4
lines changed Original file line number Diff line number Diff line change @@ -328,15 +328,13 @@ hover :: PluginMethodHandler IdeState LSP.Method_TextDocumentHover
328
328
hover ide _ msgParam = do
329
329
nfp <- getNormalizedFilePathE uri
330
330
(cabalFields, _) <- runActionE " cabal.cabal-hover" ide $ useWithStaleE ParseCabalFields nfp
331
- let mCursorText = CabalFields. findTextWord cursor cabalFields
332
- case mCursorText of
331
+ case CabalFields. findTextWord cursor cabalFields of
333
332
Nothing ->
334
333
pure $ InR Null
335
334
Just cursorText -> do
336
335
(gpd, _) <- runActionE " cabal.GPD" ide $ useWithStaleE ParseCabalFile nfp
337
336
let depsNames = map dependencyName $ allBuildDepends $ flattenPackageDescription gpd
338
- mText = filterVersion cursorText
339
- case mText of
337
+ case filterVersion cursorText of
340
338
Nothing -> pure $ InR Null
341
339
Just txt ->
342
340
if txt `elem` depsNames
You can’t perform that action at this time.
0 commit comments