Simplify and speed up Haskell module running

This commit is contained in:
1computer1 2019-05-16 22:13:47 -04:00
parent a109b57697
commit 9a9c2b3d95

View file

@ -4,10 +4,7 @@ else
mkdir "$COUNT" && cd "$COUNT" mkdir "$COUNT" && cd "$COUNT"
echo "$1" > program.hs echo "$1" > program.hs
ghc -O0 -j +RTS -A128m -n2m -RTS \ ghc -e main program.hs
-no-keep-o-files -no-keep-hi-files \
program.hs >/dev/null \
&& ./program
cd .. && rm -rf "$COUNT" cd .. && rm -rf "$COUNT"
fi fi