aboutsummaryrefslogtreecommitdiff
path: root/src/HaddockUtil.hs
diff options
context:
space:
mode:
authorkrasimir <unknown>2002-07-09 16:33:33 +0000
committerkrasimir <unknown>2002-07-09 16:33:33 +0000
commit9728087302a03143624d030642770f17be1eb097 (patch)
tree0744abe99116d9b9927ff2003f560429702ffe1f /src/HaddockUtil.hs
parent44f3891a021a5d10d2f5fc1263ac0633573d86a8 (diff)
[haddock @ 2002-07-09 16:33:31 by krasimir]
'Microsoft HTML Help' support
Diffstat (limited to 'src/HaddockUtil.hs')
-rw-r--r--src/HaddockUtil.hs5
1 files changed, 5 insertions, 0 deletions
diff --git a/src/HaddockUtil.hs b/src/HaddockUtil.hs
index 1e8e2ca8..3e7660bb 100644
--- a/src/HaddockUtil.hs
+++ b/src/HaddockUtil.hs
@@ -14,6 +14,7 @@ module HaddockUtil (
-- * Filename utilities
basename, dirname, splitFilename3,
isPathSeparator, pathSeparator,
+ moduleHtmlFile,
-- * Miscellaneous utilities
die, dieMsg, mapSnd, mapMaybeM,
@@ -209,6 +210,10 @@ isPathSeparator ch =
ch == '/'
#endif
+moduleHtmlFile :: FilePath -> String -> FilePath
+moduleHtmlFile "" mod = mod ++ ".html" -- ToDo: Z-encode filename?
+moduleHtmlFile dir mod = dir ++ pathSeparator : mod ++ ".html"
+
-----------------------------------------------------------------------------
-- misc.