building only the docs

Ian Lynagh igloo at earth.li
Mon Dec 24 07:10:26 EST 2007


On Mon, Dec 24, 2007 at 08:30:32AM +0700, Peter Gammie wrote:
> Do you expect this to work?
> 
> <setup> clean
> <setup> configure
> <setup> haddock
> <setup> install
> 
> I get, e.g.:
> 
> $ runghc Setup install
> Installing: /home/peteg/lib/HaXml-1.13.2/ghc-6.6.1
> Installing: /home/peteg/bin
> Setup.hs: Error: Could not find module:  
> Text.ParserCombinators.HuttonMeijerWallace with any suffix: ["hi"]
> 
> whereas if I swap "build" for "haddock" line the "install" line does  
> not complain about the lack of docs to install.

Related to this, there'e no way to install only the docs or only the
binaries when both are built, as far as I know. This isn't a huge
problem, but it ought to be easy to fix and it would be nice to have.

It would have made things slightly simpler for me when building separate
-doc and -dev Debian packages for Cabal libraries, and it also would
mean we could do the right thing in GHC's "make install-docs".


Thanks
Ian



More information about the cabal-devel mailing list