Unexpected signal on hclosing stdout twice

Alastair Reid <[email protected]>
Newsgroups gmane.comp.lang.haskell.hugs.bugs
Message-ID <[email protected]>
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                 [email protected]  
Reid Consulting (UK) Limited  http://www.reid-consulting-uk.ltd.uk/alastair/
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.