[project @ 2000-05-31 11:58:27 by panne]
Trying to get the whole #include business right: ccalls are unfolded
into interface files, even without -funfold-casms-in-hi-file. Although
this is a good thing performance-wise, the header files should better
be #included during compilation of the .hc files. Solution:
* Every .hc file #includes "Stg.h" first.
* For every package `foo' used, "HsFoo.h" is #included, too. This
means that every package has to come with a corresponding header
file, even if it is empty.
Downside:
* Getting #includes right with ghc-inplace is a little bit ugly:
The boot target in Makefiles must copy the package's header files
into GHC_INCLUDE_DIR (don't forget the clean target!), and final
installation of those headers is done there, too. :-P Better
solutions are highly welcome.
* Possible pollution of the C name spaces.