[project @ 2005-10-25 12:01:11 by simonmar]
authorsimonmar <unknown>
Tue, 25 Oct 2005 12:01:11 +0000 (12:01 +0000)
committersimonmar <unknown>
Tue, 25 Oct 2005 12:01:11 +0000 (12:01 +0000)
fix findExecutable (I hope; don't have an up to date Windows build to
test on).

libraries/base/System/Directory.hs

index 8b7dee3..ec4e5a7 100644 (file)
@@ -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 = do
+findExecutable binary =
 #if defined(mingw32_HOST_OS)
   withCString binary $ \c_binary ->
   withCString ('.':exeExtension) $ \c_ext ->
@@ -597,6 +597,7 @@ foreign import stdcall unsafe "SearchPath"
                          -> Ptr CString
                          -> IO CInt
 #else
+ do
   path <- getEnv "PATH"
   search (parseSearchPath path)
   where