new target ./setup plain_source?
Stefan O'Rear
stefanor at cox.net
Sat Jul 21 23:08:33 EDT 2007
On Sat, Jul 21, 2007 at 02:26:47AM +0200, Marc Weber wrote:
> Hi.
>
> What about adding another target ./setup plain_source which should
> preprocess everything (including cpp) and output the files to an extra
> directory?
> Why?
> This could be used for haddock documentation generation (Not sure how
> this is done) and perhaps to be read by future IDE's to provide compiler
> independent completion etc?
>
> eg ./setup haddock on haddock sources itself fails on line
>
> #if defined(mingw32_HOST_OS)
> ...
>
> What do you think?
Sounds very cool. *However* the output will not be portable, since the
FFI preprocessors work by inlining constants.
It also sounds pretty easy. Look at the API docs (Distribution.* in
your nearest GHC documentation bundle), see if it can be done in a
stand-alone tool, if not by all means submit a ticket.
Stefan
-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: application/pgp-signature
Size: 189 bytes
Desc: Digital signature
Url : http://www.haskell.org/pipermail/cabal-devel/attachments/20070721/ca78a757/attachment.bin
More information about the cabal-devel
mailing list