And rlwrap is great, but any repl should have readline built-in.
Also, (quit) to exit is too cumbersome. ctrl-d doesn't work either. Apparently ctrl-c ctrl-d is the quickest solution.