I&#39;m using cabal to build and install a new library I&#39;m writing. In the .cabal file I&#39;ve exposed only a single module. However, the haddock generated documentation includes even the non-exposed modules, which is not what I want since end-users should not see these. Is there a way to tell cabal to build documentation only for exposed modules?<div>

<br></div>