Unexpected signal on hclosing stdout twice

Alastair Reid alastair@reid-consulting-uk.ltd.uk
05 Sep 2002 13:24:56 +0100


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@reid-consulting-uk.ltd.uk  
Reid Consulting (UK) Limited  http://www.reid-consulting-uk.ltd.uk/alastair/