package=`basename $1 .tar.gz` tar xfz ./dist/$package.tar.gz --directory=/tmp/ cd /tmp/$package/ runhaskell Setup configure --user --enable-tests runhaskell Setup build runhaskell Setup haddock echo echo "'cabal check' says" cabal check echo echo "After running tests you may want to call:" echo rm -r /tmp/$package/