[Haskell-cafe] GHC + interactive input/output

Jonathan Cast jonathanccast at fastmail.fm
Fri Feb 8 22:02:24 EST 2008

On 8 Feb 2008, at 6:50 PM, Jonathan Cast wrote:

> On 8 Feb 2008, at 6:34 PM, Ryan Ingram wrote:
>> import System.IO
>> myGetLine = hFlush stdout >> getLine
> That fixes this issue, certainly (although it's superfluous; my  
> program really does contain only a single call to getLine)...
> Nevertheless, it would be nice to at least have it in the standard  
> library; it's much more useful than any of the input functions that  
> already exist.

Also, for some reason, this doesn't seem to be necessary inside an  
Emacs buffer...  Do we not care about performance in that case?


More information about the Haskell-Cafe mailing list