Test Cases for Configurations
Ian Lynagh
igloo at earth.li
Mon Jun 18 05:57:30 EDT 2007
On Mon, Jun 18, 2007 at 09:16:10AM +0100, Simon Marlow wrote:
> >
> > modules: ...
> > modules[testing]: ...
> > modules[internal]: ...
>
> A simpler way to solve this problem is to have two packages, with the first
> package (foo-internal) exporting all the modules, and the second (foo)
> re-exposing just the non-internal modules. We don't currently have support
> for re-exposing, but it has lots of uses and it shouldn't be too hard to
> add (to GHC, at least).
>
> Perhaps it's not quite as nice, though: the foo-internal package shows up
> in your ghc-pkg list, and you need two separate Cabal packages (although
> good support for working with multiple packages is something we should have
> too).
It also means that none of your internal modules can depend on any of
your normal modules.
(I'm not really convinced it's simpler either)
Thanks
Ian
More information about the cabal-devel
mailing list