Re-wrote repl using haskeline