[Haskell-cafe] Re: Unexpected results with simple IO

2006-02-20 Thread Maurício
I'm also using GHC 6.4.1 and rxvt v2.7.10. The problem does occur in compiled code, but everything is OK in ghci! hFlush stdout did solve the problem, as expected. I've just started using rxvt. If you have tips on how to make ghci work well with rxvt, please share them with me (for

Re: [Haskell-cafe] Re: Unexpected results with simple IO

2006-02-20 Thread Emil Axelsson
Unfortunately, I don't know how to make the arrow keys work in rxvt. I'm not the right person to ask about such things... I don't think it's possible (unless GHC is built for Cygwin, or something). Does anybody else know? I use an alias alias ghciW='cmd /c start ghci' That way I can start

Re: [Haskell-cafe] Re: Unexpected results with simple IO

2006-02-19 Thread Emil Axelsson
What version of GHC are you using? Your code works for me in rxvt in Cygwin, with GHC 6.4.1. But I remember having that same problem earlier (in some earlier GHC version, so it may be fixed by now). The solution was to run hFlush after each putStr, like so: import System.IO (hFlush, stdout)

[Haskell-cafe] Re: Unexpected results with simple IO

2006-02-17 Thread Maurício
You're right... I was running the example in rxvt, in cygwin. Now I tried in Windows command shell and it works. Thanks, Maurício Cale Gibbard wrote: That doesn't happen for me at all, it works just fine. Maybe it's something wrong with your terminal? You could possibly try playing with