Create new workspace for every eval

This commit is contained in:
1computer1 2019-06-15 21:22:43 -04:00
parent bc67dbbfd7
commit 700b66c183
23 changed files with 17 additions and 99 deletions

View file

@ -1,10 +1,6 @@
if [ "$EVAL_EXPR" = "true" ]; then
ghc -e "$1" || true
else
mkdir "$CODEDIR" && cd "$CODEDIR"
printf %s "$1" > program.hs
ghc -e main program.hs || true
cd .. && rm -rf "$CODEDIR"
fi