[Haskell-cafe] Trouble with interact in ghci

Adrian Neumann aneumann at inf.fu-berlin.de
Wed Dec 17 05:44:14 EST 2008


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
-------------- next part --------------
A non-text attachment was scrubbed...
Name: PGP.sig
Type: application/pgp-signature
Size: 194 bytes
Desc: Signierter Teil der Nachricht
Url : http://www.haskell.org/pipermail/haskell-cafe/attachments/20081217/07c70180/PGP.bin


More information about the Haskell-Cafe mailing list