Ported to scala 2.10.

Lost interrupting the repl, I think that's about it.