diff options
author | David Waern <david.waern@gmail.com> | 2010-05-18 21:16:30 +0000 |
---|---|---|
committer | David Waern <david.waern@gmail.com> | 2010-05-18 21:16:30 +0000 |
commit | 7f036b2fca2af645ffa133290a47568b1f31c956 (patch) | |
tree | dbb74a8bf1459fe1f8711f5b6a2b57d191be5546 /src/Main.hs | |
parent | 0bb42506df5701f4851605169bc159a5f09197e2 (diff) |
HLint police
Diffstat (limited to 'src/Main.hs')
-rw-r--r-- | src/Main.hs | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/Main.hs b/src/Main.hs index 95cd4acd..28271d01 100644 --- a/src/Main.hs +++ b/src/Main.hs @@ -168,7 +168,7 @@ render :: [Flag] -> [Interface] -> [InstalledInterface] -> IO () render flags ifaces installedIfaces = do let - title = case optTitle flags of Nothing -> ""; Just t -> t + title = fromMaybe "" (optTitle flags) unicode = Flag_UseUnicode `elem` flags opt_source_urls = optSourceUrls flags opt_wiki_urls = optWikiUrls flags @@ -189,7 +189,7 @@ render flags ifaces installedIfaces = do (pkgName,pkgVer) = modulePackageInfo packageMod -- Which HTML rendering to use. - pick htmlF xhtmlF = if (Flag_Xhtml `elem` flags) then xhtmlF else htmlF + pick htmlF xhtmlF = if Flag_Xhtml `elem` flags then xhtmlF else htmlF ppHtmlIndex = pick Html.ppHtmlIndex Xhtml.ppHtmlIndex ppHtmlHelpFiles = pick Html.ppHtmlHelpFiles Xhtml.ppHtmlHelpFiles ppHtmlContents = pick Html.ppHtmlContents Xhtml.ppHtmlContents |