on master help sign in
Remove old ifdefs for supporting base<4 since we require base>=4
commitf8401d52c60d0e7059332faf99bf6b0be095bd68 authorBenjamin Saunders <besaunde@sfu.ca> dateThu 27 Jun 2013, 13:03 (13 years ago) parent127cc70
2 files changed−14
src/IRTS/CodegenCommon.hs−7 src/Util/System.hs−7
src/IRTS/CodegenCommon.hs−7
@@ -1,5 +1,3 @@
1−{-# LANGUAGE CPP #-}
2−
31module IRTS.CodegenCommon where
42
53import Core.TT
@@ -14,9 +12,4 @@ data OutputType = Raw | Object | Executable deriving (Eq, Show)
1412environment :: String -> IO (Maybe String)
1513environment x = Control.Exception.catch (do e <- getEnv x
1614 return (Just e))
17−#if MIN_VERSION_base(4,0,0)
1815 (\y-> do return (y::SomeException); return Nothing)
19−#endif
20−#if !MIN_VERSION_base(4,0,0)
21− (\_-> return Nothing)
22−#endif
src/Util/System.hs−7
@@ -15,22 +15,15 @@ import System.FilePath ((</>), addTrailingPathSeparator, normalise)
1515import System.Environment
1616import System.IO
1717import System.IO.Error
18−#if MIN_VERSION_base(4,0,0)
1918import Control.Exception as CE
20−#endif
2119
2220import Paths_idris
2321
24−#if MIN_VERSION_base(4,0,0)
2522catchIO :: IO a -> (IOError -> IO a) -> IO a
2623catchIO = CE.catch
2724
2825throwIO :: IOError -> IO a
2926throwIO = CE.throw
30−#else
31−catchIO = catch
32−throwIO = throw
33−#endif
3427
3528
3629