       js: ''
     }
   else
-    module = lookupCompiledModule moduleName
     {modules, ctx} = contextWithDependencies moduleDependencies moduleName
     [expression] = _terms ast
     compilationFn = (topLevelExpressionInModule importsFor moduleDependencies moduleName)

    ast: ast
    errors: errors
    malformed: ctx.isMalformed

importsFor = (moduleSet) ->
  lookupDefinitions = (name) ->

exports.compileTopLevel = compileTopLevel
exports.compileModule = compileModule
exports.compileExpression = compileExpression
exports.expand = expandCall
exports.findAvailableTypes = findAvailableTypes
exports.findMatchingDefinitions = findMatchingDefinitions
exports.findDocsFor = findDocsFor
