File tree Expand file tree Collapse file tree 1 file changed +6
-6
lines changed
ghcide/src/Development/IDE/Core Expand file tree Collapse file tree 1 file changed +6
-6
lines changed Original file line number Diff line number Diff line change @@ -996,17 +996,17 @@ getDocsBatch
996
996
-> [Name ]
997
997
-> IO (Map. Map Name (Either String (Maybe HsDocString , Map. Map Int HsDocString )))
998
998
getDocsBatch hsc_env _mod _names = do
999
- ((_warns,errs), res) <- initTc hsc_env HsSrcFile False _mod fakeSpan $ traverse findNameInfo _names
999
+ ((_warns,errs), res) <- initTc hsc_env HsSrcFile False _mod fakeSpan $ Map. fromList <$> traverse findNameInfo _names
1000
1000
case res of
1001
- Just x -> return $ Map. fromList $ fun x
1001
+ Just x -> return $ fun x
1002
1002
Nothing -> throwErrors errs
1003
1003
where
1004
- fun :: [( Name , Either GetDocsFailure c )] -> [( Name , Either String c )]
1004
+ fun :: Map. Map Name ( Either GetDocsFailure c ) -> Map. Map Name ( Either String c )
1005
1005
fun =
1006
- map fun1
1006
+ Map. map fun1
1007
1007
where
1008
- fun1 :: (( Name , Either GetDocsFailure c ) -> ( Name , Either String c ))
1009
- fun1 = fmap ( first $ T. unpack . showGhc)
1008
+ fun1 :: Either GetDocsFailure c -> Either String c
1009
+ fun1 = first $ T. unpack . showGhc
1010
1010
1011
1011
throwErrors = liftIO . throwIO . mkSrcErr
1012
1012
You can’t perform that action at this time.
0 commit comments