title: Any way to exports a generator function?
body: <p>An example</p>
  
  <p><code>generator.js</code>:</p>
  
  <pre><code>exports.read = function *(){
    var a = yield read('co.github.js');
    var b = yield read('co.recevier.js');
    var c = yield read('co.yield.js');
    console.log([a,b,c]);
  }
  
  function read(file) {
    return function(fn){
      fs.readFile(file, 'utf8', fn);
    }
  }
  </code></pre>
  
  <p><code>co.js</code>:</p>
  
  <pre><code>var co = require('co');
  var fs = require('fs');
  var gen = require('./generator')
  /*function read(file) {
    return function(fn){
      fs.readFile(file, 'utf8', fn);
    }
  }*/
  
  co(gen.read)()
  </code></pre>
  
  <p>It seems that <code>exports</code> doesn't support generator function.</p>
  
  <pre><code>require, module, __filename, __dirname) { module.exports.read = function *(){
                                                                            ^
  SyntaxError: Unexpected token *
  at exports.runInThisContext (vm.js:69:16)
      at Module._compile (module.js:432:25)
      at Object.Module._extensions..js (module.js:467:10)
      at Module.load (module.js:349:32)
      at Function.Module._load (module.js:305:12)
      at Function.Module.runMain (module.js:490:10)
      at startup (node.js:123:16)
      at node.js:1027:3
  </code></pre>
  
  <p>Why I want to do this? I just want to separate my data from Controllers. Any way to solve it?</p>