 import Cocoa
 
 public extension Curio {
-    func emit(_ module: CodeModule, name: String, dir: String) throws {
+    func emit(_ module: CodeModule, name: String, dir: String) throws -> Bool {
         let locpath = (dir as NSString).appendingPathComponent(name)
 
         let emitter = CodeEmitter(stream: "")

                try code.write(toFile: locpath, atomically: true, encoding: String.Encoding.utf8)
            }
        }
    }
}
#endif

        }

        if loccode == code {
            return false // contents are unchanged from local version; skip compiling
        }

        let bundle = Bundle(for: JSONParser.self).executablePath!
