[Haskell-cafe] Re: GSoC: Improving Cabal's Test Support

Thomas Tuegel ttuegel at gmail.com
Tue Apr 6 21:37:48 EDT 2010

On Tue, Apr 6, 2010 at 9:00 PM, Gregory Crosswhite
<gcross at phys.washington.edu> wrote:
> Sounds like a good plan to me!
> You still need some way to separate out the test dependencies from the main build dependencies, though.  Perhaps as a separate line in the main Cabal header section?

I think I can implement this inside Cabal in the conversion from
GenericPackageDescription to PackageDescription, as if it were
implemented all in terms of conditionals.  So, if tests are enabled,
the test executables are in the PackageDescription and their
dependencies get pulled in; if tests are disabled, the executables get
cut from the PackageDescription.  Am I missing something?

Thomas Tuegel

More information about the Haskell-Cafe mailing list