   # types: typeEnumaration ctx
   errors: errors
 
+compileModule = (moduleName = '@unnamed') ->
+  js: library + immutable + (listOfLines map lookupJs, (setToArray runtimeDependencies moduleName))
+
 compileExpression = (source, moduleName = '@unnamed') ->
   ast = (astFromSource "(#{source})", -1, -1)
   if _empty _validTerms ast



exports.compileTopLevel = compileTopLevel
exports.compileExpression = compileExpression
exports.findAvailableTypes = findAvailableTypes
exports.findMatchingDefinitions = findMatchingDefinitions

exports.plainPrettyPrint = plainPrettyPrint
exports.labelDocs = labelDocs
exports.builtInLibraryNumLines = library.split('\n').length + immutable.split('\n').length

exports.library = library

