Skip to content

Commit

Permalink
Fix regression in SpanInfo haddocks for local modules
Browse files Browse the repository at this point in the history
The regression was introduced in haskell#630 - it introduced `GhcSessionDeps` with the idea of reusing the GHC session built for typechecking for computing the SpanInfo, instead of rebuilding it from scratch.

But I forgot to actually reuse it, or maybe the change got lost during the merge.
  • Loading branch information
pepeiborra committed Jun 30, 2020
1 parent 193ab38 commit a33f9e6
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/Development/IDE/Core/Rules.hs
Original file line number Diff line number Diff line change
Expand Up @@ -468,7 +468,7 @@ getSpanInfoRule :: Rules ()
getSpanInfoRule =
define $ \GetSpanInfo file -> do
tc <- use_ TypeCheck file
packageState <- hscEnv <$> use_ GhcSession file
packageState <- hscEnv <$> use_ GhcSessionDeps file

-- When possible, rely on the haddocks embedded in our interface files
-- This creates problems on ghc-lib, see comment on 'getDocumentationTryGhc'
Expand Down

0 comments on commit a33f9e6

Please sign in to comment.