6.2.2 candidate

Sigbjorn Finne sof at galois.com
Wed Sep 15 12:12:59 EDT 2004


Thanks for the feedback, Mike. There's been quite a few
changes to the codebase for the installer builder, which was
the main reason for wanting to test the bits more widely.
So good to hear that things appear to be working outside
my build environment.

Re: -o behaviour -- some releases ago, ghc-win32 mapped
the compilation of Main.hs to main.exe in the absence of a
user-supplied -o option. That change doesn't appear to have
stuck, as it has been back to "a.out" for quite a while now.
Fix-worthy?

Appending an .exe extension if the filename doesn't already have
an extension is quite sensible, I think.

--sigbjorn

----- Original Message ----- 
From: "Mike Thomas" <mike.thomas at brisbane.paradigmgeo.com>
To: "Sigbjorn Finne" <sof at galois.com>; <cvs-ghc at haskell.org>
Sent: Tuesday, September 14, 2004 21:33
Subject: RE: 6.2.2 candidate


> Hi Sigbjorn.
>
> | A Windows test installer for the upcoming 6.2.2 is now available as
>
> Thanks for that - it installed smoothly under Windows XP Pro SP2.  I tried
> your Win32 library example and it worked with both ghci and ghc as
> installed.  I will use the new package to build GHC tonight as a further
> test.
>
> Note however, that if no "-o" command line option is given ghc builds an
> executable called "a.out" (no exe extension) which runs without further 
> ado
> on my OS but I guess not on, for example, Windows 98.   Directory listings
> and command line stuff to illustrate are below.  If "-o somename" is given
> without a .exe the extension is added.
>
> I think that an exe extension should be added in all cases; what do you
> reckon?
>
> Cheers
>
> Mike Thomas.
>
>
> C:\lang\source\ghc\w32test>dir
> Volume in drive C has no label.
> Volume Serial Number is 44EE-D89E
>
> Directory of C:\lang\source\ghc\w32test
>
> 21/05/2004  09:39 AM    <DIR>          .
> 21/05/2004  09:39 AM    <DIR>          ..
> 14/02/2004  12:11 AM             3,541 hello.lhs
>               1 File(s)          3,541 bytes
>               2 Dir(s)  10,852,573,184 bytes free
>
> C:\lang\source\ghc\w32test>ghc -package win32 hello.lhs
>
> C:\lang\source\ghc\w32test>dir
> Volume in drive C has no label.
> Volume Serial Number is 44EE-D89E
>
> Directory of C:\lang\source\ghc\w32test
>
> 15/09/2004  02:17 PM    <DIR>          .
> 15/09/2004  02:17 PM    <DIR>          ..
> 15/09/2004  02:17 PM           743,007 a.out
> 15/09/2004  02:17 PM               454 hello.hi
> 14/02/2004  12:11 AM             3,541 hello.lhs
> 15/09/2004  02:17 PM            26,494 hello.o
>               4 File(s)        773,496 bytes
>               2 Dir(s)  10,851,459,072 bytes free
>
> C:\lang\source\ghc\w32test>del hello.o hello.hi a.out
>
> C:\lang\source\ghc\w32test>dir
> Volume in drive C has no label.
> Volume Serial Number is 44EE-D89E
>
> Directory of C:\lang\source\ghc\w32test
>
> 15/09/2004  02:18 PM    <DIR>          .
> 15/09/2004  02:18 PM    <DIR>          ..
> 14/02/2004  12:11 AM             3,541 hello.lhs
>               1 File(s)          3,541 bytes
>               2 Dir(s)  10,849,570,816 bytes free
>
> C:\lang\source\ghc\w32test>ghc -package win32 hello.lhs -o hello
>
> C:\lang\source\ghc\w32test>dir
> Volume in drive C has no label.
> Volume Serial Number is 44EE-D89E
>
> Directory of C:\lang\source\ghc\w32test
>
> 15/09/2004  02:20 PM    <DIR>          .
> 15/09/2004  02:20 PM    <DIR>          ..
> 15/09/2004  02:20 PM           743,007 hello.exe
> 15/09/2004  02:20 PM               454 hello.hi
> 14/02/2004  12:11 AM             3,541 hello.lhs
> 15/09/2004  02:20 PM            26,494 hello.o
>               4 File(s)        773,496 bytes
>               2 Dir(s)  10,848,620,544 bytes free
> 



More information about the Cvs-ghc mailing list