[cvs-nhc98] *.hi files
Malcolm Wallace
Malcolm.Wallace at cs.york.ac.uk
Sat Jun 12 17:41:39 EDT 2004
Sven Panne <Sven.Panne at aedion.de> writes:
> I have trouble understanding the relationship between the .hi file
> below nhc98/include/ and the ones of the same name generated during
> the build process (below nhc98/src/prelude, IIRC). Could somebody
> please enlighten me?
The .hi files in include/ for the standard prelude and libraries
are static. They are not recreated or overwritten during the build
process. This is partly because they are needed to bootstrap the
build, and partly because there are some special hand-tweaks to these
versions of the files (some for performance, some possibly also to
avoid bugs). Think of them as being like ghc's .hi-boot files.
By contrast, those for the hierarchical libs (under include/packages/)
are indeed copied directly during the build.
> My concrete problem is that I've changed CTypesExtra (types => newtypes
> and added quite a few instances), but the changes don't seem to have
> any effect for the nhc98 which is being built. :-(
You can probably just copy the relevant file (Foreign.hi?) to the
include directory, and check it into CVS if it works.
Regards,
Malcolm
More information about the Cvs-nhc98
mailing list