From bbe5155e63c5bf942f55c4b15467b29245b556d6 Mon Sep 17 00:00:00 2001 From: Vidar Holen Date: Mon, 4 Mar 2019 18:18:58 -0800 Subject: [PATCH] Use less modern APIs to support more GHC versions --- shellcheck.hs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/shellcheck.hs b/shellcheck.hs index 8887a85..446aa3b 100644 --- a/shellcheck.hs +++ b/shellcheck.hs @@ -438,7 +438,7 @@ ioInterface options files = do return [home, xdg] readConfig file = do - exists <- doesPathExist file + exists <- doesFileExist file if exists then do (contents, _) <- inputFile file `catch` handler file