Skip to content

Instantly share code, notes, and snippets.

@fishmacs
fishmacs / reload.js
Last active August 29, 2015 14:24 — forked from gleitz/reload.js
// Reloading modules from the repl in Node.js
// Benjamin Gleitzman (gleitz@mit.edu)
//
// Inspired by Ben Barkay
// http://stackoverflow.com/a/14801711/305414
//
// Usage: `node reload.js`
// You can load the module as usual
// var mymodule = require('./mymodule')
// And the reload it when needed
scala> import scalaz._
import scalaz._
scala> import Scalaz._
import Scalaz._
scala> ∅[Boolean]
res0: Boolean = false