@@ -1,5 +1,3 @@
3module IRTS.CodegenCommon where
1module IRTS.CodegenCommon where
5import Core.TT
3import Core.TT
@@ -14,9 +12,4 @@ data OutputType = Raw | Object | Executable deriving (Eq, Show)
14environment :: String -> IO (Maybe String)
12environment :: String -> IO (Maybe String)
15environment x = Control.Exception.catch (do e <- getEnv x
13environment x = Control.Exception.catch (do e <- getEnv x
16 return (Just e))
14 return (Just e))
17−#if MIN_VERSION_base(4,0,0)
18 (\y-> do return (y::SomeException); return Nothing)
15 (\y-> do return (y::SomeException); return Nothing)
20−#if !MIN_VERSION_base(4,0,0)
21− (\_-> return Nothing)