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