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
signature.asc
Description: Digital signature
_______________________________________________ cabal-devel mailing list [email protected] http://www.haskell.org/mailman/listinfo/cabal-devel
