projects
/
haskell-directory.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(from parent 1:
ac0622f
)
[project @ 2005-10-21 06:54:13 by ross]
author
ross
<unknown>
Fri, 21 Oct 2005 06:54:13 +0000
(06:54 +0000)
committer
ross
<unknown>
Fri, 21 Oct 2005 06:54:13 +0000
(06:54 +0000)
repair findExecutable
System/Directory.hs
patch
|
blob
|
history
diff --git
a/System/Directory.hs
b/System/Directory.hs
index
21bdbf4
..
8b7dee3
100644
(file)
--- a/
System/Directory.hs
+++ b/
System/Directory.hs
@@
-576,7
+576,7
@@
canonicalizePath fpath = return fpath
-- such executable. For example (findExecutable \"ghc\")
-- gives you the path to GHC.
findExecutable :: String -> IO (Maybe FilePath)
-findExecutable binary =
+findExecutable binary = do
#if defined(mingw32_HOST_OS)
withCString binary $ \c_binary ->
withCString ('.':exeExtension) $ \c_ext ->