File tree Expand file tree Collapse file tree 1 file changed +3
-3
lines changed
ghcide/src/Development/IDE/Spans Expand file tree Collapse file tree 1 file changed +3
-3
lines changed Original file line number Diff line number Diff line change @@ -72,10 +72,10 @@ getDocumentationsTryGhc env mod names = do
72
72
res <- fun
73
73
case res of
74
74
Left _ -> return []
75
- Right res -> zipWithM unwrap (fmap snd res) names
75
+ Right res -> zipWithM unwrap (fmap snd $ Map. toList res) names
76
76
where
77
- fun :: IO (Either [FileDiagnostic ] [( Name , Either String (Maybe HsDocString , Map. Map Int HsDocString ))] )
78
- fun = catchSrcErrors (hsc_dflags env) " docs" $ Map. toList <$> getDocsBatch env mod names
77
+ fun :: IO (Either [FileDiagnostic ] ( Map. Map Name ( Either String (Maybe HsDocString , Map. Map Int HsDocString ))) )
78
+ fun = catchSrcErrors (hsc_dflags env) " docs" $ getDocsBatch env mod names
79
79
80
80
unwrap (Right (Just docs, _)) n = SpanDocString docs <$> getUris n
81
81
unwrap _ n = mkSpanDocText n
You can’t perform that action at this time.
0 commit comments