From 63093c32f33ad1fcfef10d2ef6ef010c2b5471e9 Mon Sep 17 00:00:00 2001 From: hallgren Date: Thu, 8 Nov 2012 15:53:46 +0000 Subject: Eliminate warnings about deprecated use of catch and try This is also needed for compatibility with GHC 7.6. --- src/compiler/GF/Infra/UseIO.hs | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) (limited to 'src/compiler/GF/Infra/UseIO.hs') diff --git a/src/compiler/GF/Infra/UseIO.hs b/src/compiler/GF/Infra/UseIO.hs index b559f0e92..dec2269fd 100644 --- a/src/compiler/GF/Infra/UseIO.hs +++ b/src/compiler/GF/Infra/UseIO.hs @@ -15,14 +15,17 @@ module GF.Infra.UseIO where +import Prelude hiding (catch) + import GF.Data.Operations import GF.Infra.Option +import GF.System.Catch import Paths_gf(getDataDir) import System.Directory import System.FilePath import System.IO -import System.IO.Error +import System.IO.Error(isUserError,ioeGetErrorString) import System.Environment import System.Exit import System.CPUTime -- cgit v1.2.3