compiler-discord/docker/haskell/run.sh
2019-05-16 22:13:47 -04:00

10 lines
178 B
Bash

if [ "$EVAL_EXPR" = "true" ]; then
ghc -e "$1"
else
mkdir "$COUNT" && cd "$COUNT"
echo "$1" > program.hs
ghc -e main program.hs
cd .. && rm -rf "$COUNT"
fi