RE: Building GHC 5.02 on Solaris x86

2001-10-29 Thread Simon Marlow
Doh, I have several times got further than I thought but didn't realise it as I didn't notice it had made a ghc-5.02 binary! Here's my latest problem, anyway - I don't suppose it could be caused by the hc files being generated under a different OS with different magic numbers could

Changed behaviour when reading from FIFOs!

2001-10-29 Thread Volker Stolz
Something broke when reading from FIFOs in the transition from 5.00 to 5.02. The following program behaves as it should in 5.00, but with 5.02 it fails after printing the last line (strangely for varying numbers of last!) with Fail: end of file Action: hGetChar Handle:

Re: Changed behaviour when reading from FIFOs!

2001-10-29 Thread Volker Stolz
On Mon, Oct 29, 2001 at 02:08:23PM -, Simon Marlow wrote: This appears to be because the dummy Handle opened in WriteMode is being garbage collected and closed, which leaves the FIFO with no writers so you get EOF. 5.02 is behaving correctly here. You can add an extra 'hClose dummy' at

RE: Changed behaviour when reading from FIFOs!

2001-10-29 Thread Simon Marlow
On Mon, Oct 29, 2001 at 02:08:23PM -, Simon Marlow wrote: This appears to be because the dummy Handle opened in WriteMode is being garbage collected and closed, which leaves the FIFO with no writers so you get EOF. 5.02 is behaving correctly here. You can add an extra 'hClose

RE: Problem with xargs and ar

2001-10-29 Thread Simon Marlow
Hello. Just a nasty build bug with 5.02 that I encountered. When building the prelude library, the individual object files are turned to an archive with xargs ar q libHSstd.a. Now, for some reason, on this system, GNU ar fails at some point during this process. The standard solaris ar

installHandler, sleep, and interrupts.

2001-10-29 Thread Anders Lau Olsen
When interrupting this program, the signal handler does not get called: module Main where import Posix main = do installHandler 2 (Catch (putStrLn Hello, world!)) Nothing sleep 600 -- putStr Curiously, if the last line is uncommented, the program works as