On Tue, Apr 6, 2010 at 9:00 PM, Gregory Crosswhite
<gcr...@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
_______________________________________________
Haskell-Cafe mailing list
Haskell-Cafe@haskell.org
http://www.haskell.org/mailman/listinfo/haskell-cafe

Reply via email to