Is it way to check whether given string represent executable in $PATH(%path%)?
It have to be portable to Windows. Idea to just call it and see return status is not apporiate,
as non-zero may mean program error or program not found.
Well, in code, I want following
possibleCompilers = ["gcc", "icc", "foo", "bar.exe"]
presentCompiler :: IO String
That task should be doable using
System.Directory.findExecutable.I changed the type to
IO (Maybe String), since maybe, none of the candidates is found.