|
Re: reading in ghci-6-4-branch: msg#00055lang.haskell.glasgow.bugs
On Wed, 2005-06-22 at 11:04 +0400, Serge D. Mechveliani wrote: > Who knows, please, how to work with the program of > > > main = interact (\ s -> shows (read s :: Bool) "\n") > > Is this a GHC bug? > > Regards, Hi Serge, Generally speaking differences that you see between the interactive behaviour of ghci and ghc are due to buffering. By default ghci uses no buffering on stdin and ghc uses line buffering. To get what you want, use hSetBuffering stdin LineBuffering Cheers, Bernie.
|
|
| <Prev in Thread] | Current Thread | [Next in Thread> |
|---|---|---|
| Previous by Date: | reading in ghci-6-4-branch, Serge D. Mechveliani |
|---|---|
| Next by Date: | [ ghc-Bugs-1225368 ] Typechecker loop and stack overflow in 6.4, SourceForge.net |
| Previous by Thread: | reading in ghci-6-4-branch, Serge D. Mechveliani |
| Next by Thread: | RE: reading in ghci-6-4-branch, Simon Marlow |
| Indexes: | [Date] [Thread] [Top] [All Lists] |
| News | FAQ | advertise |