Safe Haskell | None |
---|
Main
- main :: IO ()
- interpreterLoop :: Environment -> InputT IO ()
- executeAction :: Environment -> InterpreterAction -> InputT IO (Maybe Environment)
- outputActions :: Environment -> [String] -> InputT IO ()
- loadFile :: Filename -> IO (Maybe [Action])
- executeFile :: Filename -> IO ()
- readFileDependencies :: Filename -> IO [Modulename]
- readAllModuleDeps :: [Modulename] -> IO (Maybe [Modulename])
- readAllModuleDepsRecursively :: [Modulename] -> IO (Maybe [Modulename])
- findFilename :: Modulename -> IO (Maybe Filename)
- data MainFlags = MainFlags {
- flagExec :: String
- flagVersion :: Bool
- flagLibs :: Bool
Documentation
interpreterLoop :: Environment -> InputT IO () Source #
Interpreter awaiting for an instruction.
executeAction :: Environment -> InterpreterAction -> InputT IO (Maybe Environment) Source #
Executes the parsed action, every action may affect the context in a way, and returns the control to the interpreter.
outputActions :: Environment -> [String] -> InputT IO () Source #
Outputs results from actions. Given a list of options and outputs, formats and prints them in console.
loadFile :: Filename -> IO (Maybe [Action]) Source #
Loads the given filename and returns the complete list of actions. Returns Nothing if there is an error reading or parsing the file.
executeFile :: Filename -> IO () Source #
Executes the commands inside a file. A .mkr file can contain a sequence of expressions and variable bindings, and it is interpreted sequentially.
readFileDependencies :: Filename -> IO [Modulename] Source #
Reads module dependencies
readAllModuleDeps :: [Modulename] -> IO (Maybe [Modulename]) Source #
Reads all the dependencies from a module list. Returns an error if a dependency cannot be found
readAllModuleDepsRecursively :: [Modulename] -> IO (Maybe [Modulename]) Source #
Read module dependencies recursively. Returns an error if a dependency cannot be found
findFilename :: Modulename -> IO (Maybe Filename) Source #
Given a module name, returns the filename associated with it