From 9b446da6cc7710114efc5088103d3902ebda6df9 Mon Sep 17 00:00:00 2001 From: Neil Mitchell Date: Mon, 16 Jun 2008 06:33:21 +0000 Subject: Default to "main" if there is no package, otherwise will clobber hoogle's hoogle info --- src/Haddock/Backends/Hoogle.hs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'src') 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) -- cgit v1.2.3