[commit: packages/directory] master: Fixes #2184 - findExecutable checks permissions (7789d1c)

kyra kyrab at mail.ru
Sun Oct 27 16:00:23 UTC 2013


On 10/25/2013 18:24, git at git.haskell.org wrote:
> +findExecutables :: String -> IO [FilePath]
> +findExecutables binary = do
>   #if defined(mingw32_HOST_OS)
> -  Win32.searchPath Nothing binary ('.':exeExtension)
> +    file <- Win32.searchPath Nothing fileName ('.':exeExtension)
> +    return $ maybeToList file
>   #else
Gives "Not in scope `fileName'" error on Windows. Perhaps, 'binary' 
shall be used instead.


More information about the ghc-commits mailing list