On Tue, May 24, 2011 at 00:38, max ulidtko <ulidtko@gmail.com> wrote:
I have a package which builds with cabal pretty fine, but there is
namespace issue which disturbs me. The problem is that the package
exports (to the toplevel namespace!) some modules with fairly general
names, like Tests, Basics, Applications. This is probably an oversight

Sadly that isn't so much a Cabal issue as something deeper inside ghc.  I could imagine something using ghc-api to accomplish it, but that goes well outside of what cabal can cope with.