Hi,

I have a strange problem with "interact" on OS X (ghc 6.10.1). It seems to garble stdin.

I have some code here http://hpaste.org/13135#a2 , for testing purpose:

*Main> main
1
> 1.0
2
> 1.5
3
> 2.0
*Main> setNonBlockingFD: invalid argument (Bad file descriptor)
11:40:45 ~/Desktop>

(I hit ctrl-D)

*Main> main
1
> 1.0
2
> 1.5
3
> 2.0
^CInterrupted.
*Main> main
*** Exception: <stdin>: hGetContents: illegal operation (handle is closed)
*Main>

Someone on #haskell suspected my editline to be the culprit. Does anyone of you know what I can do about this problem?

Greetings,

Adrian

Attachment: PGP.sig
Description: Signierter Teil der Nachricht

_______________________________________________
Haskell-Cafe mailing list
Haskell-Cafe@haskell.org
http://www.haskell.org/mailman/listinfo/haskell-cafe

Reply via email to