
17 Dec
2008
17 Dec
'08
5:44 a.m.
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