summaryrefslogtreecommitdiff
path: root/utils/ghc-pkg/Main.hs
diff options
context:
space:
mode:
authorThomas Miedema <thomasmiedema@gmail.com>2015-04-03 17:58:53 +0200
committerThomas Miedema <thomasmiedema@gmail.com>2015-04-03 18:52:57 +0200
commitab0743f84aabc2b4f5681c09a3e11cb219d114e4 (patch)
treef755ec332e0d1b18727d1d61e24fb7c90b5e8b9e /utils/ghc-pkg/Main.hs
parentfd1099cb7076b94f776a06212b5ba2ae1aac0673 (diff)
downloadhaskell-ab0743f84aabc2b4f5681c09a3e11cb219d114e4.tar.gz
Comments only, mostly typos
[skip ci]
Diffstat (limited to 'utils/ghc-pkg/Main.hs')
-rw-r--r--utils/ghc-pkg/Main.hs4
1 files changed, 3 insertions, 1 deletions
diff --git a/utils/ghc-pkg/Main.hs b/utils/ghc-pkg/Main.hs
index bf9de0fee9..1389723c62 100644
--- a/utils/ghc-pkg/Main.hs
+++ b/utils/ghc-pkg/Main.hs
@@ -325,7 +325,7 @@ data PackageArg
-- match a single entry in the package database.
| IPId InstalledPackageId
-- | A glob against the package name. The first string is the literal
- -- glob, the second is a function which returns @True@ if the the argument
+ -- glob, the second is a function which returns @True@ if the argument
-- matches.
| Substring String (String->Bool)
@@ -2023,5 +2023,7 @@ removeFileSafe fn =
removeFile fn `catchIO` \ e ->
when (not $ isDoesNotExistError e) $ ioError e
+-- | Turn a path relative to the current directory into a (normalised)
+-- absolute path.
absolutePath :: FilePath -> IO FilePath
absolutePath path = return . normalise . (</> path) =<< getCurrentDirectory