Jon

| Well I am about to bite the bullet and try and make GHC compile
| GHC so that I can use your patches.

I'd be delighted if you did.  The big thing is that you have to make the
.hi-boot files to get things started for mutually recursive modules.
This needs to be done differently than for 0.29.  There, we say

        import IdLoop

and it goes to get IdLoop.hi, never knowing that IdLoop.hs doesn't exist.

GHC 2.02 may go to IdLoop.hi, but it will then look further to the modules
that actually define the things exported by IdLoop.hi... so potentially
there are more interface files involved.  (The real solution is for it to
read the source of these modules, but that ain't done.)

Once these .hi-boot things are written, the Makefile simply copies
Foo.hi-boot to Foo.hi when you say "gmake hi-boot", and then off you go.

I've been putting off doing this.  If you make any progress let me know.

Simon

Reply via email to