[Haskell-cafe] GHC + interactive input/output
Jonathan Cast
jonathanccast at fastmail.fm
Fri Feb 8 21:50:13 EST 2008
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.
jcc
More information about the Haskell-Cafe
mailing list