[project @ 2005-12-03 17:32:01 by jpbernardy]
[haskell-directory.git] / 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