Re: [Haskell-cafe] Trouble with interact in ghci
Hi Adrian On Wed, Dec 17, 2008 at 11:44:14AM +0100, Adrian Neumann wrote: > > I have a strange problem with "interact" on OS X (ghc 6.10.1). It > seems to garble stdin. See the "After using getContents" section of http://www.haskell.org/ghc/docs/latest/html/users_guide/ghci-faq.html Thanks Ian ___ Haskell-Cafe mailing list Haskell-Cafe@haskell.org http://www.haskell.org/mailman/listinfo/haskell-cafe
[Haskell-cafe] Trouble with interact in ghci
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: : 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 PGP.sig Description: Signierter Teil der Nachricht ___ Haskell-Cafe mailing list Haskell-Cafe@haskell.org http://www.haskell.org/mailman/listinfo/haskell-cafe