Skip to content

Commit

Permalink
ghcide: Compile: m: upd
Browse files Browse the repository at this point in the history
  • Loading branch information
Anton-Latukha committed Feb 6, 2022
1 parent 68ebfdf commit 0a87017
Showing 1 changed file with 5 additions and 15 deletions.
20 changes: 5 additions & 15 deletions ghcide/src/Development/IDE/Core/Compile.hs
Original file line number Diff line number Diff line change
Expand Up @@ -1052,17 +1052,7 @@ getDocsNonInteractive
:: HscEnv
-> Module
-> Name
-> IO
( Either
GHC.ErrorMessages
( Name
, Either
GetDocsFailure
( Maybe HsDocString
, Maybe (IntMap HsDocString)
)
)
)
-> IO (Either GHC.ErrorMessages (Name, Either GetDocsFailure (Maybe HsDocString, Maybe (IntMap HsDocString))))
getDocsNonInteractive hsc_env mod name =
do
let
Expand All @@ -1077,10 +1067,10 @@ getDocsNonInteractive hsc_env mod name =

-- | Non-interactive, batch version of 'GHC.Runtime.Eval.getDocs'.
getDocsBatch
:: HscEnv
-> Module -- ^ a moudle where the names are in scope
-> [Name]
-> IO(Either GHC.ErrorMessages (MS.Map Name (Either GetDocsFailure (Maybe HsDocString, Maybe (IntMap HsDocString)))))
:: HscEnv
-> Module -- ^ a moudle where the names are in scope
-> [Name]
-> IO (Either GHC.ErrorMessages (MS.Map Name (Either GetDocsFailure (Maybe HsDocString, Maybe (IntMap HsDocString)))))
-- ^ Return a 'Map' of 'Name's to 'Either' (no docs messages) (general doc body & arg docs)
getDocsBatch hsc_env mod names =
do
Expand Down

0 comments on commit 0a87017

Please sign in to comment.