Re: Why have file names with 3 components?

2001-09-28 Thread Keith Wansbrough

 This looks like a bug, but please don't change it!
 
 If you have a file A.blah.hs containing a module A, ghc5.02 compiles it, producing 
A.hi and A.blah.o.

This is correct... the basename for the .hi files is the module name, not the 
filename.  Thus if A.blah.hs contained module C where... then the hi file would be 
C.hi.

--KW 8-)
-- 
Keith Wansbrough [EMAIL PROTECTED]
http://www.cl.cam.ac.uk/users/kw217/
Cambridge University Computer Laboratory.


___
Glasgow-haskell-users mailing list
[EMAIL PROTECTED]
http://www.haskell.org/mailman/listinfo/glasgow-haskell-users



Why have file names with 3 components?

2001-09-27 Thread George Russell

This looks like a bug, but please don't change it!

If you have a file A.blah.hs containing a module A, ghc5.02 compiles it, producing 
A.hi and A.blah.o.
I have an application for this, since I have just, for the first time, been 
reluctantly 
compelled to introduce recursive modules.  Rather than writing .hi-boot files (which 
might have
to be rewritten for ghc5.03) I have instead written .boot.hs files, which yield .hi 
files, which
then get moved to .hi-boot.   Thus a module A has two sources, the real source A.hs, 
but also
the source for the .hi-boot file, A.boot.hs.

___
Glasgow-haskell-users mailing list
[EMAIL PROTECTED]
http://www.haskell.org/mailman/listinfo/glasgow-haskell-users