"Simon Peyton-Jones" <[EMAIL PROTECTED]> writes:
> > naming both the .hi and the .o file for the original filename,
>
> I'll leave Simon to comment on most of what you say, but this part I
> understand. If you name the .hi file for the source file (not the
> module) how do you find the file when some other module says "import
> Foo". We look for Foo.hi, but that won't work if the interface for Foo
> is stored in a file called NotFoo.hi. The interface file really must go
> with the module name, no?
Yes, indeed. In all cases except Main. For module Main, it really
doesn't matter what the files are called, because no other module can
sensibly import anything from Main (unless we get into some rather
dubious recursive module imports).
So my argument is that module Main is a special case already (for
various reasons), and so in this case (alone) it is reasonable to
override the standard requirement that links generated files to their
module name.
Regards,
Malcolm
_______________________________________________
Cvs-ghc mailing list
[EMAIL PROTECTED]
http://www.haskell.org/mailman/listinfo/cvs-ghc