aboutsummaryrefslogtreecommitdiff
path: root/src/Main.hs
diff options
context:
space:
mode:
authorNeil Mitchell <unknown>2008-06-16 07:13:48 +0000
committerNeil Mitchell <unknown>2008-06-16 07:13:48 +0000
commit43004293124cd3082ced37c1af5864b735a5768a (patch)
tree37c18df3aac8f38ef7ef31304b9854d5f1847281 /src/Main.hs
parentf8d50701d2abc8fa5e89cf5d02e97f090dc769ee (diff)
Change Hoogle to take the package name and package version separately
Diffstat (limited to 'src/Main.hs')
-rw-r--r--src/Main.hs7
1 files changed, 5 insertions, 2 deletions
diff --git a/src/Main.hs b/src/Main.hs
index 48c92a73..958eda13 100644
--- a/src/Main.hs
+++ b/src/Main.hs
@@ -203,7 +203,10 @@ render flags interfaces installedIfaces = do
allVisibleIfaces = map toInstalledIface visibleIfaces
++ installedIfaces
- packageStr = (Just . modulePkgStr . ifaceMod . head) visibleIfaces
+ packageMod = ifaceMod (head visibleIfaces)
+ packageStr = Just (modulePkgStr packageMod)
+ (pkgName,pkgVer) = modulePkgInfo packageMod
+
when (Flag_GenIndex `elem` flags) $ do
ppHtmlIndex odir title packageStr maybe_html_help_format
@@ -228,7 +231,7 @@ render flags interfaces installedIfaces = do
copyHtmlBits odir libdir css_file
when (Flag_Hoogle `elem` flags) $ do
- ppHoogle packageStr visibleIfaces odir
+ ppHoogle pkgName pkgVer visibleIfaces odir
-------------------------------------------------------------------------------
-- Reading and dumping interface files