diff options
author | simonmar <unknown> | 2002-04-10 15:50:11 +0000 |
---|---|---|
committer | simonmar <unknown> | 2002-04-10 15:50:11 +0000 |
commit | 76bd7b3484f8a6353736437f0b7fb0c1cdf199b6 (patch) | |
tree | b046d1f9534160c5703814985b50414ba1731b8d /src/Main.hs | |
parent | cfbaf9f7c17481e3df32e1c1c25e8eb5c06591a6 (diff) |
[haddock @ 2002-04-10 15:50:10 by simonmar]
Generate a little table of contents at the top of the module doc (only
if the module actually contains some section headings, though).
Diffstat (limited to 'src/Main.hs')
-rw-r--r-- | src/Main.hs | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/Main.hs b/src/Main.hs index f57d5dd6..796f4939 100644 --- a/src/Main.hs +++ b/src/Main.hs @@ -274,7 +274,7 @@ mkExportItems mod_map mod env decl_map decls (Just specs) = [ ExportDecl (restrictTo (map nameOfQName cs) decl) ] lookupExport (HsEModuleContents m) = fullContentsOf m lookupExport (HsEGroup lev str) - = [ ExportGroup lev doc ] + = [ ExportGroup lev "" doc ] where (doc, _names) = formatDocHeading (lookupForDoc env) str -- ToDo: report the unresolved names lookupExport _ = [] -- didn't find it? @@ -300,7 +300,7 @@ mkExportItems mod_map mod env decl_map decls (Just specs) fullContentsOfThisModule decls env = [ mkExportItem decl | decl <- decls, keepDecl decl ] where mkExportItem (HsDocGroup lev str) = - ExportGroup lev doc + ExportGroup lev "" doc where (doc, _names) = formatDocHeading (lookupForDoc env) str -- ToDo: report the unresolved names |