Detect and remove __anon_exprs in repl
authorLuke Lau <luke_lau@icloud.com>
Sun, 2 Jun 2019 16:39:47 +0000 (17:39 +0100)
committerLuke Lau <luke_lau@icloud.com>
Mon, 3 Jun 2019 23:15:37 +0000 (00:15 +0100)
commitb380cc6f6b84c17af96be39f42b879f86f41c468
tree67b72365b5cf82c6ed4c3960d26fb279608a1098
parent3b94bc147412cd0fc3d14b68ac0720f3d2ea7a1b
Detect and remove __anon_exprs in repl

You might have noticed that when entering in top-level expressions you
end up getting duplicate __anon_expr.1, __anon_expr.2s etc. Since we
don't want these anonymous functions to stick around, in this commit
we're detecting them and then removing them once we're done.

We also only want to run the JIT whenever the user has entered a
top-level expression, so we've also sketched that out.
Main.hs
Utils.hs