Hi haskell-cafe.

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
of the original package author, and the namespace shouldn't be organised
like this... but it is. And I'm looking for a way to avoid potential
namespace troubles should I install the package, other than going and
reforming the namespace tree myself.

What I was thinking about was some cabal option to "wrap" package's
namespace into a toplevel module, say "PackageName", so that module
Tests could be imported by usual code with `import PackageName.Tests`.
Is that possible with cabal?

Things are further complicated by the numerous intra-library imports.
While the "outside" code refers to a module with PackageName.ModuleName,
it would be very desirable that "inside" code used just straight
ModuleName.

------
Regards,
max ulidtko

Attachment: signature.asc
Description: This is a digitally signed message part

_______________________________________________
Haskell-Cafe mailing list
Haskell-Cafe@haskell.org
http://www.haskell.org/mailman/listinfo/haskell-cafe

Reply via email to