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>
Sun, 2 Jun 2019 16:39:47 +0000 (17:39 +0100)
commit431c4b6e37e414b6959cdf14a50622c514ea0a85
tree67b72365b5cf82c6ed4c3960d26fb279608a1098
parente23b23071fc89fc8b73eee61cc06728c93375161
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