File tree Expand file tree Collapse file tree 1 file changed +3
-2
lines changed
ghcide/src/Development/IDE/Core Expand file tree Collapse file tree 1 file changed +3
-2
lines changed Original file line number Diff line number Diff line change @@ -1055,7 +1055,7 @@ getDocsNonInteractive' name =
1055
1055
-- | Non-interactive modification of 'GHC.Runtime.Eval.getDocs'.
1056
1056
-- The interactive paths create problems in ghc-lib builds
1057
1057
--- and lead to fun errors like "Cannot continue after interface file error".
1058
- getDocsNonInteractive :: HscEnv -> Module -> Name -> IO (Either ErrorMessages (Name , Either GetDocsFailure (Maybe HsDocString , Maybe (Map. Map Int HsDocString ))))
1058
+ getDocsNonInteractive :: HscEnv -> Module -> Name -> IO (Either GHC. ErrorMessages (Name , Either GetDocsFailure (Maybe HsDocString , Maybe (Map. Map Int HsDocString ))))
1059
1059
getDocsNonInteractive hsc_env mod name = do
1060
1060
((_warns,errs), res) <- initTypecheckEnv hsc_env mod $ getDocsNonInteractive' name
1061
1061
pure $ maybeToEither errs res
@@ -1066,7 +1066,8 @@ getDocsBatch
1066
1066
:: HscEnv
1067
1067
-> Module -- ^ a moudle where the names are in scope
1068
1068
-> [Name ]
1069
- -> IO (Either ErrorMessages (Map. Map Name (Either GetDocsFailure (Maybe HsDocString , Maybe (Map. Map Int HsDocString )))))
1069
+ -- 2021-11-18: NOTE: Map Int would become IntMap if next GHCs.
1070
+ -> IO (Either GHC. ErrorMessages (Map. Map Name (Either GetDocsFailure (Maybe HsDocString , Maybe (Map. Map Int HsDocString )))))
1070
1071
-- ^ Return a 'Map' of 'Name's to 'Either' (no docs messages) (general doc body & arg docs)
1071
1072
getDocsBatch hsc_env mod names = do
1072
1073
((_warns,errs), res) <- initTypecheckEnv hsc_env mod $ Map. fromList <$> traverse getDocsNonInteractive' names
You can’t perform that action at this time.
0 commit comments