On Sun, 2008-08-10 at 19:23 +0100, Claus Reinke wrote: > > You should be able to pass --haddock-options to "Setup configure". > > Interesting. It would be nice if 'Setup haddock --help' would mention > that, especially since 'Setup configure --help' doesn't mention haddock > by name (I even looked into the Cabal sources, saw the hardcoded > HaddockFlags, and gave up; too early, it seems).
It does mention it by name actually: $ runghc Setup configure --help [..snip..] --with-PROG=PATH give the path to PROG --PROG-options=OPTS give extra options to PROG --PROG-option=OPT give an extra option to PROG (no need to quote options containing spaces) The flags --with-PROG and --PROG-option(s) can be used with the following programs: alex ar c2hs cpphs ffihugs ghc ghc-pkg greencard haddock happy hmake hsc2hs hscolour hugs jhc ld nhc98 pkg-config ranlib strip tar I didn't think people would want to see 42 lines of stuff like: --with-ar=PATH --ar-options=OPTS so we factor out the program, but we do list all the programs it applies to (which is every prog used by cabal, and any given in Setup.hs). We added the --PROG-options= to the build command against my better judgement on request for the ghc build system. Options given to build do not persist in the saved configuration, while those given to configure persist to subsequent build/haddock/install/register commands. If you want something similar for haddock perhaps you can tell us about your use case here: http://hackage.haskell.org/trac/hackage/ticket/196 Duncan _______________________________________________ Cvs-ghc mailing list Cvs-ghc@haskell.org http://www.haskell.org/mailman/listinfo/cvs-ghc