ghci changing 'm' to 'g'
Yitzchak Gale
gale at sefer.org
Wed Nov 21 20:52:33 EST 2007
Quoth InteractiveUI.runGHCi:
case maybe_expr of
Nothing ->
do
#if defined(mingw32_HOST_OS)
-- The win32 Console API mutates the first character of
-- type-ahead when reading from it in a non-buffered manner. Work
-- around this by flushing the input buffer of type-ahead
characters,
-- but only if stdin is available.
flushed <- io (IO.try (GHC.ConsoleHandler.flushConsole stdin))
case flushed of
Left err | isDoesNotExistError err -> return ()
| otherwise -> io (ioError err)
Right () -> return ()
#endif
-- enter the interactive loop
interactiveLoop is_tty show_prompt
Could this be related somehow?
-Yitz
More information about the Glasgow-haskell-users
mailing list