Alastair Reid | 5 Sep 2002 14:24
Picon

Unexpected signal on hclosing stdout twice


Running 'hClose stdout' twice in a row causes Hugs to abort:

Prelude> :l IO
Reading file "/home/reid/local/lib/hugs/lib/IO.hs":
Reading file "/home/reid/local/lib/hugs/lib/Ix.hs":
Reading file "/home/reid/local/lib/hugs/lib/IO.hs":

Hugs session for:
/home/reid/local/lib/hugs/lib/Prelude.hs
/home/reid/local/lib/hugs/lib/Ix.hs
/home/reid/local/lib/hugs/lib/IO.hs
IO> hPutStr stdout "abcde" >> hClose stdout
abcde
IO> hPutStr stdout "abcde" >> hClose stdout

Unexpected signal

--
Alastair Reid                 alastair <at> reid-consulting-uk.ltd.uk  
Reid Consulting (UK) Limited  http://www.reid-consulting-uk.ltd.uk/alastair/

Gmane