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,13 +72,13 @@ getDocumentationsTryGhc env mod names = do
72
72
res <- fun
73
73
case res of
74
74
Left _ -> return mempty -- catchSrcErrors (hsc_dflags env) "docs"
75
- Right res -> fmap Map. fromList $ sequenceA $ uncurry unwrap <$> Map. toList res
75
+ Right res -> sequenceA $ Map. mapWithKey unwrap res
76
76
where
77
77
fun :: IO (Either ErrorMessages (Map. Map Name (Either T. Text (Maybe HsDocString , Maybe (Map. Map Int HsDocString )))))
78
78
fun = getDocsBatch env mod names
79
79
80
- unwrap :: Name -> Either a (Maybe HsDocString , b ) -> IO ( Name , SpanDoc )
81
- unwrap name a = (name,) . extractDocString a <$> getSpanDocUris name
80
+ unwrap :: Name -> Either a (Maybe HsDocString , b ) -> IO SpanDoc
81
+ unwrap name a = extractDocString a <$> getSpanDocUris name
82
82
where
83
83
extractDocString :: Either b1 (Maybe HsDocString , b2 ) -> SpanDocUris -> SpanDoc
84
84
-- 2021-11-17: FIXME: ArgDocs get dropped here - instead propagate them.
You can’t perform that action at this time.
0 commit comments