Skip to content

Commit 4edd00b

Browse files
committed
Avoid doesDirectoryExist
1 parent d5d30fd commit 4edd00b

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

src/MicroHs/Compile.hs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -579,7 +579,7 @@ getPaths = do
579579
-- There are two scenarios: either we are running inplace or installed
580580
binDir <- takeDirectory <$> catch getExecutablePath (\ (_ :: SomeException) -> getProgName) -- ~/.mcabal/bin
581581
let upDir = binDir </> ".."
582-
inplace <- doesDirectoryExist (upDir </> "src/runtime")
582+
inplace <- doesFileExist (upDir </> "src/runtime/eval.c")
583583
if inplace then do
584584
let libDir = upDir </> "lib"
585585
gmpDir | wantGMP = [libDir </> "gmp"]

0 commit comments

Comments
 (0)