Created
February 26, 2012 09:24
-
-
Save spockz/1915609 to your computer and use it in GitHub Desktop.
Wrapper for ghc --make
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#/usr/bin/env bash | |
PAR=false; | |
for thing in "$@" | |
do | |
if [ $thing = "--make" ] | |
then | |
PAR=true | |
break | |
fi | |
done | |
if [ $PAR = true ] | |
then | |
ghc-parmake -j9 $* | |
else | |
/usr/bin/ghc $* | |
fi |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment