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>
Thu, 7 Nov 2019 17:11:07 +0000 (17:11 +0000)
commite82cbcc35f73376dcc628f8d537c80378e7ad4a7
tree369c39d8e970eee1b47f3afcd7738d729fb4f023
parent8386b89c4a269b7ba16a3a26517894c33393a795
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