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)
commit18c4b939a6ba1099cd7296b839428f829533f3c8
tree369c39d8e970eee1b47f3afcd7738d729fb4f023
parent71d6ead1c5a14f206f5d7c8d4b9d1cbfed4a90db
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