aboutsummaryrefslogtreecommitdiff
path: root/src/HaddockTypes.hs
diff options
context:
space:
mode:
authorsimonmar <unknown>2002-04-10 15:50:11 +0000
committersimonmar <unknown>2002-04-10 15:50:11 +0000
commit76bd7b3484f8a6353736437f0b7fb0c1cdf199b6 (patch)
treeb046d1f9534160c5703814985b50414ba1731b8d /src/HaddockTypes.hs
parentcfbaf9f7c17481e3df32e1c1c25e8eb5c06591a6 (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/HaddockTypes.hs')
-rw-r--r--src/HaddockTypes.hs9
1 files changed, 7 insertions, 2 deletions
diff --git a/src/HaddockTypes.hs b/src/HaddockTypes.hs
index e13fcb1a..e29d5dae 100644
--- a/src/HaddockTypes.hs
+++ b/src/HaddockTypes.hs
@@ -66,8 +66,13 @@ data Interface
type DocString = String
data ExportItem
- = ExportDecl HsDecl -- a declaration
- | ExportGroup Int Doc -- a section heading
+ = ExportDecl
+ HsDecl -- a declaration
+
+ | ExportGroup -- a section heading
+ Int -- section level (1, 2, 3, ... )
+ String -- section "id" (for hyperlinks)
+ Doc -- section heading text
type ModuleMap = FiniteMap Module Interface