cabal test: only build tests and dependencies
cabal bench: only build benchmarks and dependencies
Merge pull request #1821 from ttuegel/selective-build

Build only tests and benchmarks when needed