Skip to content

Commit

Permalink
Disambiguate catch for older GHC
Browse files Browse the repository at this point in the history
  • Loading branch information
snoyberg committed Feb 17, 2015
1 parent 81be17f commit 9393527
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion System/Directory.hs
Original file line number Diff line number Diff line change
Expand Up @@ -399,7 +399,7 @@ createDirectoryIfMissing create_parents path0
#else
canIgnore <- (Posix.isDirectory `fmap` Posix.getFileStatus dir)
#endif
`catch` ((\ _ -> return (isAlreadyExistsError e))
`E.catch` ((\ _ -> return (isAlreadyExistsError e))
:: IOException -> IO Bool)
unless canIgnore (throwIO e)
| otherwise -> throwIO e
Expand Down

0 comments on commit 9393527

Please sign in to comment.