patch: --enable-tests and --only-dependencies

Andres Löh andres at
Thu Feb 16 17:46:03 CET 2012

Hi Thomas.

> would install all network's dependencies (but not their tests), then
> build, test, and install network. It didn't change how dependencies
> were handled at all. However, the test runner in Cabal wasn't designed
> to be invoked from cabal-install: it sometimes exits on success, which
> cabal-install interprets as an error, even when it isn't. This was
> stopping packages without tests from being installed with 'cabal
> install --enable-tests', which shouldn't happen.

Actually, the new solver will filter out --enable-tests for packages
that don't define any. If the old solver could do the same, would that
be an alternative to patch the Cabal lib?


Andres Löh, Haskell Consultant
Well-Typed LLP,

More information about the cabal-devel mailing list