We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 6a54107 commit bf03c86Copy full SHA for bf03c86
ghcide/src/Development/IDE/Spans/AtPoint.hs
@@ -279,7 +279,7 @@ atPoint IdeOptions{} (HAR _ hf _ _ (kind :: HieKind hietype)) (DKMap dm km) env
279
packageNameForImportStatement mod = do
280
mpkg <- findImportedModule env mod :: IO (Maybe Module)
281
let moduleName = printOutputable mod
282
- case join $ traverse (flip packageNameWithVersion env) mpkg of
+ case mpkg >>= flip packageNameWithVersion env of
283
Nothing -> pure moduleName
284
Just pkgWithVersion -> pure $ moduleName <> "\n\n" <> pkgWithVersion
285
0 commit comments