diff options
Diffstat (limited to 'src/compiler/GF/System/Catch.hs')
| -rw-r--r-- | src/compiler/GF/System/Catch.hs | 14 |
1 files changed, 14 insertions, 0 deletions
diff --git a/src/compiler/GF/System/Catch.hs b/src/compiler/GF/System/Catch.hs new file mode 100644 index 000000000..85d993435 --- /dev/null +++ b/src/compiler/GF/System/Catch.hs @@ -0,0 +1,14 @@ +-- | Isolate backwards incompatible library changes to 'catch' and 'try' +{-# LANGUAGE CPP #-} +module GF.System.Catch where +import qualified System.IO.Error as S + +#include "cabal_macros.h" + +#if MIN_VERSION_base(4,4,0) +catch = S.catchIOError +try = S.tryIOError +#else +catch = S.catch +try = S.try +#endif |
