summaryrefslogtreecommitdiff
path: root/Utility/Path.hs
diff options
context:
space:
mode:
authorGravatar Joey Hess <joey@kitenet.net>2012-01-23 16:57:45 -0400
committerGravatar Joey Hess <joey@kitenet.net>2012-01-23 16:57:45 -0400
commit5e172b43c4dc5d779e4f1af5c1376c9a8ebc60a4 (patch)
tree312b16e8afcdfa792c87f8e35c7c82507aabda7a /Utility/Path.hs
parentbed495db644cc49f45ec2a4f49a572308fc586f7 (diff)
a few things available elsewhere...
Diffstat (limited to 'Utility/Path.hs')
-rw-r--r--Utility/Path.hs5
1 files changed, 4 insertions, 1 deletions
diff --git a/Utility/Path.hs b/Utility/Path.hs
index 9f4fe2927..ed5e59cb5 100644
--- a/Utility/Path.hs
+++ b/Utility/Path.hs
@@ -47,7 +47,10 @@ dirContains a b = a == b || a' == b' || (a'++"/") `isPrefixOf` b'
a' = norm a
b' = norm b
-{- Converts a filename into a normalized, absolute path. -}
+{- Converts a filename into a normalized, absolute path.
+ -
+ - Unlike Directory.canonicalizePath, this does not require the path
+ - already exists. -}
absPath :: FilePath -> IO FilePath
absPath file = do
cwd <- getCurrentDirectory