[Haskell-cafe] ghc --make Vs runhaskell
madhub.bits at gmail.com
Wed Feb 4 04:57:16 UTC 2015
Thanks a lot. .this really helps..
On Feb 3, 2015 10:35 PM, "Tristan Seligmann" <mithrandi at mithrandi.net>
> On 4 February 2015 at 05:23, Madhu Babu <madhub.bits at gmail.com> wrote:
> > Basically, in the following code, we print a line first and the read the
> > line from stdin. This behavior works perfectly fine when using
> > guess.hs”. But when i say “./guess”, i had to type in a number directly (
> > i.e. first prompt is skipped ).
> This is most likely due to stdio buffering; usually stdin/stdout are
> line buffered, so data you write with putStr may not actually be
> written until a newline is written. This post / thread details some
> ways to handle this problem:
> mithrandi, i Ainil en-Balandor, a faer Ambar
-------------- next part --------------
An HTML attachment was scrubbed...
More information about the Haskell-Cafe