diff options
author | David Waern <davve@dtek.chalmers.se> | 2007-11-06 00:49:21 +0000 |
---|---|---|
committer | David Waern <davve@dtek.chalmers.se> | 2007-11-06 00:49:21 +0000 |
commit | e05c48731b6af1a8c71c0f379cf16c7079b93fa3 (patch) | |
tree | 12ed95f57a36de8cc1c0668b20380befc17c123f /src/Haddock/Interface.hs | |
parent | b7b6aee89676d16ac620f0752900a3dbb74e5843 (diff) |
Filter out instances with TyCons that are not exported
Diffstat (limited to 'src/Haddock/Interface.hs')
-rw-r--r-- | src/Haddock/Interface.hs | 11 |
1 files changed, 7 insertions, 4 deletions
diff --git a/src/Haddock/Interface.hs b/src/Haddock/Interface.hs index e27aefb1..4b178bf4 100644 --- a/src/Haddock/Interface.hs +++ b/src/Haddock/Interface.hs @@ -41,12 +41,15 @@ createInterfaces modules externalLinks flags = (interfaces, homeLinks, messages) -- part 1, create the interfaces interfaces <- createInterfaces' modules flags - -- part 2, attach the instances - let interfaces' = attachInstances interfaces - - -- part 3, rename the interfaces + -- part 2, build the link environment let homeLinks = buildHomeLinks interfaces let links = homeLinks `Map.union` externalLinks + let allNames = Map.keys links + + -- part 3, attach the instances + let interfaces' = attachInstances interfaces allNames + + -- part 3, rename the interfaces interfaces'' <- mapM (renameInterface links) interfaces' return (interfaces'', homeLinks) |