[Haskell] putStr is not evaluated in the correct order

Paul Johnson paul at cogito.org.uk
Mon Sep 4 15:05:01 EDT 2006


"Andreas S" <andreas_s at hotmail.com> writes:

> This works find in ghci, but the compiled code (ghc 6.4.2) executes getLine 
> first before executing putStr. Instead of:
> Who are you? myself
> Hello, myself
> 
> I got:
> myself
>Who are you? Hello, myself

I have now fixed the WikiBook to use putStrLn instead of putStr.  Sorry about that.

Paul.



More information about the Haskell mailing list