@@ -5,18 +5,11 @@ import IRTS.Simplified
55import IRTS.Defunctionalise
66import IRTS.Lang
77
8−import Control.Exception
98import Data.Word
10−import System.Environment
119
1210data DbgLevel = NONE | DEBUG | TRACE deriving Eq
1311data OutputType = Raw | Object | Executable | MavenProject deriving (Eq, Show)
1412
15−environment :: String -> IO (Maybe String)
16−environment x = Control.Exception.catch (do e <- getEnv x
17− return (Just e))
18− (\y-> do return (y::SomeException); return Nothing)
19−
2013-- Everything which might be needed in a code generator - a CG can choose which
2114-- level of Decls to generate code from (simplified, defunctionalised or merely
2215-- lambda lifted) and has access to the list of object files, libraries, etc.