diff options
author | David Waern <david.waern@gmail.com> | 2010-08-29 13:11:03 +0000 |
---|---|---|
committer | David Waern <david.waern@gmail.com> | 2010-08-29 13:11:03 +0000 |
commit | 1de86e8aaa5719c248b03f1d3a166849fedc3919 (patch) | |
tree | 869a90c4e9be2da86d70a474b28078f8246a025d /src/Main.hs | |
parent | d5ec98534422eba93298bb8a76e6b315a55c3158 (diff) |
Naming wibbles
Diffstat (limited to 'src/Main.hs')
-rw-r--r-- | src/Main.hs | 18 |
1 files changed, 9 insertions, 9 deletions
diff --git a/src/Main.hs b/src/Main.hs index b9eb6b95..59257d9d 100644 --- a/src/Main.hs +++ b/src/Main.hs @@ -141,7 +141,7 @@ main = handleTopExceptions $ do throwE "No input file(s)." -- Get packages supplied with --read-interface. - packages <- readInterfaceFiles freshNameCache (ifaceTriples flags) + packages <- readInterfaceFiles freshNameCache (readIfaceArgs flags) -- Render even though there are no input files (usually contents/index). renderStep flags packages [] @@ -161,7 +161,7 @@ readPackagesAndProcessModules flags files = do withGhc libDir (ghcFlags flags) $ \_ -> handleSrcErrors $ do -- Get packages supplied with --read-interface. - packages <- readInterfaceFiles nameCacheFromGhc (ifaceTriples flags) + packages <- readInterfaceFiles nameCacheFromGhc (readIfaceArgs flags) -- Create the interfaces -- this is the core part of Haddock. let ifaceFiles = map snd packages @@ -187,7 +187,7 @@ render flags ifaces installedIfaces srcMap = do let title = fromMaybe "" (optTitle flags) unicode = Flag_UseUnicode `elem` flags - opt_wiki_urls = optWikiUrls flags + opt_wiki_urls = wikiUrls flags opt_contents_url = optContentsUrl flags opt_index_url = optIndexUrl flags odir = outputDir flags @@ -204,9 +204,9 @@ render flags ifaces installedIfaces srcMap = do pkgStr = Just (packageIdString pkgId) (pkgName,pkgVer) = modulePackageInfo pkgMod - (src_base, src_module, src_entity) = optSourceUrls flags - srcMap' = maybe srcMap (\path -> Map.insert pkgId path srcMap) src_entity - sourceUrls = (src_base, src_module, srcMap') + (srcBase, srcModule, srcEntity) = sourceUrls flags + srcMap' = maybe srcMap (\path -> Map.insert pkgId path srcMap) srcEntity + sourceUrls' = (srcBase, srcModule, srcMap') libDir <- getHaddockLibDir flags prologue <- getPrologue flags @@ -214,20 +214,20 @@ render flags ifaces installedIfaces srcMap = do when (Flag_GenIndex `elem` flags) $ do ppHtmlIndex odir title pkgStr - themes opt_contents_url sourceUrls opt_wiki_urls + themes opt_contents_url sourceUrls' opt_wiki_urls allVisibleIfaces copyHtmlBits odir libDir themes when (Flag_GenContents `elem` flags) $ do ppHtmlContents odir title pkgStr - themes opt_index_url sourceUrls opt_wiki_urls + themes opt_index_url sourceUrls' opt_wiki_urls allVisibleIfaces True prologue copyHtmlBits odir libDir themes when (Flag_Html `elem` flags) $ do ppHtml title pkgStr visibleIfaces odir prologue - themes sourceUrls opt_wiki_urls + themes sourceUrls' opt_wiki_urls opt_contents_url opt_index_url unicode copyHtmlBits odir libDir themes |