aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorNeil Mitchell <unknown>2008-06-16 06:33:21 +0000
committerNeil Mitchell <unknown>2008-06-16 06:33:21 +0000
commit9b446da6cc7710114efc5088103d3902ebda6df9 (patch)
treebce0bb7309ac1583a32060487639d79cad61c767
parenta64dbd046c9b5d6dd3b62b65aee5e7616c0642ef (diff)
Default to "main" if there is no package, otherwise will clobber hoogle's hoogle info
-rw-r--r--src/Haddock/Backends/Hoogle.hs2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/Haddock/Backends/Hoogle.hs b/src/Haddock/Backends/Hoogle.hs
index 33d77bef..4c9c7c66 100644
--- a/src/Haddock/Backends/Hoogle.hs
+++ b/src/Haddock/Backends/Hoogle.hs
@@ -31,7 +31,7 @@ prefix = ["-- Hoogle documentation, generated by Haddock",
ppHoogle :: Maybe String -> [Interface] -> FilePath -> IO ()
ppHoogle maybe_package ifaces odir = do
- let filename = (fromMaybe "hoogle" maybe_package) <.> "txt"
+ let filename = (fromMaybe "main" maybe_package) <.> "txt"
contents = prefix ++ concat [ppModule i | i <- ifaces, OptHide `notElem` ifaceOptions i]
writeFile (odir </> filename) (unlines contents)