From 202f6995495614a329cb79c91a56384492239df3 Mon Sep 17 00:00:00 2001 From: David Waern Date: Mon, 8 Dec 2008 23:19:48 +0000 Subject: Make visible names from ExportItems Instead of a complicated calculation of visible names out of GHC's export items, we can get them straight out of the already calculated ExportItems. The ExportItems should represent exactly those items that are visible in an interface. If store all the exported sub-names in ExportDecl instead of only those with documentation, the calculation becomes very simple. So we do this change as well (should perhaps have been a separate patch). This should fix the problem with names from ghc-prim not appearing in the link environment. --- src/Haddock/Types.hs | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'src/Haddock/Types.hs') diff --git a/src/Haddock/Types.hs b/src/Haddock/Types.hs index 44cc9161..c10cfee7 100644 --- a/src/Haddock/Types.hs +++ b/src/Haddock/Types.hs @@ -47,8 +47,8 @@ data ExportItem name -- | Maybe a doc comment expItemMbDoc :: Maybe (HsDoc name), - -- | Documentation for subordinate declarations - expItemSubDocs :: [(name, HsDoc name)], + -- | Subordinate names, possibly with documentation + expItemSubDocs :: [(name, Maybe (HsDoc name))], -- | Instances relevant to this declaration expItemInstances :: [InstHead name] -- cgit v1.2.3