From 7b865ad373612e93c9b62db0b5efe14524caa388 Mon Sep 17 00:00:00 2001 From: simonmar Date: Tue, 10 Aug 2004 14:09:57 +0000 Subject: [haddock @ 2004-08-10 14:09:57 by simonmar] Fixes for DevHelp/HtmlHelp following introduction of short module description. --- src/HaddockDevHelp.hs | 5 +++-- src/HaddockHH2.hs | 4 ++-- 2 files changed, 5 insertions(+), 4 deletions(-) (limited to 'src') diff --git a/src/HaddockDevHelp.hs b/src/HaddockDevHelp.hs index 23f3bfc6..fcb26099 100644 --- a/src/HaddockDevHelp.hs +++ b/src/HaddockDevHelp.hs @@ -20,7 +20,8 @@ import HaddockTypes ppDevHelpFile :: FilePath -> String -> Maybe String -> [(Module,Interface)] -> IO () ppDevHelpFile odir doctitle maybe_package ifaces = do let devHelpFile = package++".devhelp" - tree = mkModuleTree [(mod,iface_package iface) | (mod,iface) <- ifaces] + tree = mkModuleTree [ (mod, iface_package iface, toDescription iface) + | (mod, iface) <- ifaces ] doc = text "" $$ (text "text doctitle<> @@ -42,7 +43,7 @@ ppDevHelpFile odir doctitle maybe_package ifaces = do ppModuleTree _ [] = error "HaddockHH.ppHHContents.fn: no module trees given" ppNode :: [String] -> ModuleTree -> Doc - ppNode ss (Node s leaf _pkg ts) = + ppNode ss (Node s leaf _pkg _short ts) = case ts of [] -> text "ppAttribs<>text "/>" ts -> diff --git a/src/HaddockHH2.hs b/src/HaddockHH2.hs index 3cee48e3..2555e523 100644 --- a/src/HaddockHH2.hs +++ b/src/HaddockHH2.hs @@ -40,9 +40,9 @@ ppHH2Contents odir doctitle maybe_package tree = do ppModuleTree _ [] = error "HaddockHH2.ppHH2Contents.ppModuleTree: no module trees given" ppNode :: [String] -> ModuleTree -> Doc - ppNode ss (Node s leaf _pkg []) = + ppNode ss (Node s leaf _pkg _short []) = text " ppAttributes leaf (s:ss) <> text "/>" - ppNode ss (Node s leaf _pkg ts) = + ppNode ss (Node s leaf _pkg _short ts) = text " ppAttributes leaf (s:ss) <> text ">" $$ nest 4 (ppModuleTree (s:ss) ts) $+$ text "" -- cgit v1.2.3