Better handling of interrupts in REPL

This commit is contained in:
2025-01-27 16:46:41 -06:00
committed by James Eversole
parent c6a7835a6f
commit 09eedfb609
4 changed files with 30 additions and 23 deletions

View File

@ -15,7 +15,7 @@ evalSingle env term
Just existingValue
| existingValue == evalAST env body -> env
| otherwise -> errorWithoutStackTrace $
"Unable to rebind immutable identifier: '" ++ name
"Unable to rebind immutable identifier: " ++ name
Nothing ->
let res = evalAST env body
in Map.insert "!result" res (Map.insert name res env)