1
0
forked from GitHub/gf-core

Eliminate warnings about deprecated use of catch and try

This is also needed for compatibility with GHC 7.6.
This commit is contained in:
hallgren
2012-11-08 15:53:46 +00:00
parent ad74dfe527
commit c2b7288411
7 changed files with 29 additions and 5 deletions

View File

@@ -8,7 +8,8 @@ import Control.Monad.State(StateT(..),get,gets,put)
import Control.Monad.Error(ErrorT(..),Error(..))
import System.Random(randomRIO)
import System.IO(stderr,hPutStrLn)
import System.IO.Error(try,isAlreadyExistsError)
import GF.System.Catch(try)
import System.IO.Error(isAlreadyExistsError)
import System.Directory(doesDirectoryExist,doesFileExist,createDirectory,
setCurrentDirectory,getCurrentDirectory,
getDirectoryContents,removeFile,removeDirectory)