Using Haddock 2.0 to build GHC libraries
David Waern
davve at dtek.chalmers.se
Fri Oct 26 08:30:09 EDT 2007
> On Fri, 2007-10-26 at 09:07 +0100, Simon Marlow wrote:
>
>> I suspect all you need to do is add
>>
>> $(addprefix --ghc-option=,$(GhcLibHcOpts) $(SRC_HC_OPTS))
>>
>> to the 'setup haddock' command line. That is, as long as --ghc-option
>> is
>> accepted by Cabal's haddock command, if not we'll need to add it for
>> Haddock 2.0.
>
> That doesn't seem like the right approach to me. We should not need to
> pass in extra stuff to cabal haddock. It should just work. Cabal already
> knows that it's using haddock-2.0 and adjusts the commands line args it
> uses. We just need to adjust them so they're right and do similarly in
> the makefile that Cabal generates. I think they're already right in the
> normal way Cabal calls haddock, they just need to be done the same in
> the makefile way.
I don't think Cabal currently generates a haddock target in the makefile.
So, Simon's solution seems more lightweight than adding a haddock target
to the makefile.
David
More information about the Cvs-ghc
mailing list