summaryrefslogtreecommitdiff
path: root/src/compiler/GF/System/Catch.hs
blob: 85d99343525d3e81111bcd0933d711b085b11f6b (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
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