(Imported from Trac #776, reported by guest on 2010-12-11)
Given the Cabal file:
cabal-version: >= 1.2
The following warnings are likely affect your build negatively:
(Imported comment by @aslatter on 2010-12-11)
I frequently use the "cabal haddock --internal" for this sort of thing.
(Imported comment by @dcoutts on 2010-12-11)
Note also that if we improve this test then your example will still be rejected, because conditionally exposed modules are not reasonable. The exported API is supposed to be independent of the flags, because by design we do not allow dependencies to specify flags (while you might imagine that's possible in principle, such dependencies could not be translated into distro packages).