Simplify and speed up Haskell module running
This commit is contained in:
parent
a109b57697
commit
9a9c2b3d95
1 changed files with 2 additions and 5 deletions
|
@ -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
|
||||||
|
|
Loading…
Reference in a new issue