Functional REPL and history actually works