[Haskell-beginners] [Haskell-cafe] ghc --make Vs runhaskell

Madhu Babu 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>
wrote:

> 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
> “runhaskell
> > 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:
>
> https://www.haskell.org/pipermail/beginners/2010-March/003692.html
> --
> mithrandi, i Ainil en-Balandor, a faer Ambar
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://www.haskell.org/pipermail/beginners/attachments/20150203/632fa908/attachment.html>


More information about the Beginners mailing list