Use less modern APIs to support more GHC versions

This commit is contained in:
Vidar Holen 2019-03-04 18:18:58 -08:00
parent 4dfb3fce9c
commit bbe5155e63
1 changed files with 1 additions and 1 deletions

View File

@ -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