Re: [Haskell-cafe] conditionally exposing modules in cabal

2011-08-18 Thread Rogan Creswick
On Thu, Aug 18, 2011 at 4:41 AM, Antoine Latter wrote: > One problem to consider - a downstream user of the new features won't > know that they need to pass special flags to your module, and may not > even know that they are using your module if the dependency is a few > steps removed. The situat

Re: [Haskell-cafe] conditionally exposing modules in cabal

2011-08-18 Thread Antoine Latter
On Thu, Aug 18, 2011 at 3:33 AM, Rogan Creswick wrote: > I would like to conditionally expose a number of internal modules in a > library depending on a cabal flag - the idea is that new features > could be implemented externally to the library without contaminating > the source with undesirable c

[Haskell-cafe] conditionally exposing modules in cabal

2011-08-18 Thread Rogan Creswick
I would like to conditionally expose a number of internal modules in a library depending on a cabal flag - the idea is that new features could be implemented externally to the library without contaminating the source with undesirable changes. However, I've been unable to find a way to structure a