summaryrefslogtreecommitdiff
path: root/compiler/main/HscMain.hs
diff options
context:
space:
mode:
authoralexbiehl <alex.biehl@gmail.com>2017-09-04 07:59:48 -0400
committerBen Gamari <ben@smart-cactus.org>2017-09-05 07:19:53 -0400
commit7e5d4a0e8e673f79b93ff63c4a4d0cd2b71e3063 (patch)
tree57859c3656d0ea19024c6a4ec235d9b33f45fe6d /compiler/main/HscMain.hs
parentb996e12d2c6a838a9c6d8096142f07de5cb7fedc (diff)
downloadhaskell-7e5d4a0e8e673f79b93ff63c4a4d0cd2b71e3063.tar.gz
Remember the AvailInfo for each IE
This is another take on https://phabricator.haskell.org/D3844. This patch removes then need for haddock to reimplement the calculation of exported names from modules. Instead when renaming export lists ghc annotates each IE with its exported names. Haddocks current export logic has caused lots of trouble in the past (on the Github issue tracker): - https://github.com/haskell/haddock/issues/121 - https://github.com/haskell/haddock/issues/174 - https://github.com/haskell/haddock/issues/225 - https://github.com/haskell/haddock/issues/344 - https://github.com/haskell/haddock/issues/584 - https://github.com/haskell/haddock/issues/591 - https://github.com/haskell/haddock/issues/597 Updates haddock submodule. Reviewers: austin, bgamari, ezyang Reviewed By: bgamari, ezyang Subscribers: rwbarton, thomie Differential Revision: https://phabricator.haskell.org/D3864
Diffstat (limited to 'compiler/main/HscMain.hs')
-rw-r--r--compiler/main/HscMain.hs3
1 files changed, 2 insertions, 1 deletions
diff --git a/compiler/main/HscMain.hs b/compiler/main/HscMain.hs
index 44e33acad9..e99ca31fd4 100644
--- a/compiler/main/HscMain.hs
+++ b/compiler/main/HscMain.hs
@@ -97,6 +97,7 @@ import Panic
import ConLike
import Control.Concurrent
+import Avail ( Avails )
import Module
import Packages
import RdrName
@@ -383,7 +384,7 @@ hscParse' mod_summary
-- can become a Nothing and decide whether this should instead throw an
-- exception/signal an error.
type RenamedStuff =
- (Maybe (HsGroup GhcRn, [LImportDecl GhcRn], Maybe [LIE GhcRn],
+ (Maybe (HsGroup GhcRn, [LImportDecl GhcRn], Maybe [(LIE GhcRn, Avails)],
Maybe LHsDocString))
-- | Rename and typecheck a module, additionally returning the renamed syntax