# Should be able to build setup without extra dependencies
-/opt/ghc/$GHCVER/bin/ghc --make -odir ./dist/setup -hidir ./dist/setup -i -i. ./dist/setup/setup.hs -o ./dist/setup/setup -threaded# the command cabal-install would use to build setup
-/opt/ghc/$GHCVER/bin/ghc --make -odir ./dist/setup -hidir ./dist/setup -i -i. ./dist/setup/setup.hs -o ./dist/setup/setup -Werror -threaded# the command cabal-install would use to build setup
# Need extra dependencies for test suite
-cabal install --only-dependencies --enable-tests
-sudo /opt/ghc/$GHCVER/bin/ghc-pkg recache
-/opt/ghc/$GHCVER/bin/ghc-pkg recache --user
-./dist/setup/setup configure --user --enable-tests --enable-benchmarks -v2# -v2 provides useful information for debugging
-./dist/setup/setup configure --user --enable-tests --enable-benchmarks --ghc-option=-Werror -v2# -v2 provides useful information for debugging
-./dist/setup/setup build# this builds all libraries and executables (including tests/benchmarks)