Jason wrote:
> 
> Hi, I am using win32 hugs (and windows98 (on a pc)), and its not waiting
> for input when I am using "<- getLine" it just continues.
> Why is it behaving like that and more important, how can I solve this problem
> 
> quizLoop :: ([Integer], Int) -> IO ()
> quizLoop ((x:xs), score) = do putStrLn "\nWrite this number with letters"
>                                putStr (show x ++ " ?")
>                                answer <- getLine

Unfortunately, getLine (and getChar) fail on Win95 and Win98, because
of a strange (undocumented) side effect of changing modes when reading
the keyboard.If you have a compiler, then you can look at the web pages,
and diff on the fix. Otherwise, you could wait for the November release,
with the fix. (Rather than mess around with patches, the plan is
just to release snapshots of Hugs, cause we're in bug fixing only mode,
and its quite stable now.)

Since neither of these really address your problem, I'll put up a
(clearly marked) zip file on the download page with precompiled binaries
of the patched version of Hugs today.

Andy Gill

Reply via email to