cvs commit: fptools/libraries/Cabal/Distribution
PackageDescription.hs PreProcess.hs Setup.hs Simple.hs
fptools/libraries/Cabal/Distribution/Simple Build.hs Install.hs
Simon Marlow
simonmar at microsoft.com
Mon Jan 10 06:56:19 EST 2005
On 10 January 2005 04:08, Isaac Jones wrote:
> ijones 2005/01/09 20:07:33 PST
>
> Modified files:
> libraries/Cabal/Distribution PackageDescription.hs
> PreProcess.hs Setup.hs Simple.hs
> libraries/Cabal/Distribution/Simple Build.hs Install.hs
> Log:
> added ./setup haddock cmd. works on exposed-modules
>
> It requires both haddock and hscpp; Fix to not require cpp if it's
> not needed.
>
> It runs the cpp over the files first and unlits .lhs files.
>
> Along the way, cleaned up the command-line parser to re-use code for
> commands with no arguments.
>
> Changed the type of withLib to be more general
Cool! Some items for the ToDo list. I'll try to help out with these
later, right now I'm focussed on GHC 6.4:
- should process hidden modules as well as exposed ones. The hidden
modules might contain entities that are re-exported by an exposed
module. Hidden modules should use the #hide haddock directive.
- configure should detect haddock. We should have a --with-haddock
too
(similarly for all the other programs we use - I made this change
for
VS a while ago and didn't get around to pushing it, now it'll be
conflict city. oh well).
- if GHC is present and hscpp is not, we can use 'ghc -E -cpp'. This
also unlits.
- hscpp need to define __HADDOCK__ when preprocessing for haddock.
This
means we have to preprocess seprately for haddock.
- haddock should be passed the names of the interface files for the
dependent packages (gotten from haddock_interfaces field of the
dependent packages, query ghc-pkg).
- we should install the haddock interface, and fill in the location
in haddock_interfaces. Similarly for the HTML, and haddock_html.
Cheers,
Simon
More information about the Cvs-libraries
mailing list