[Haskell-beginners] Strange difference in behaviour between ghc and ghci

Andres Löh andres at well-typed.com
Thu Jun 7 13:30:54 CEST 2012


Hi.

> -- in other words, the getLine action is being run before the putStr action,
> for some strange reason.
>
> Is this a bug? Can anyone enlighten me as to what might be going on?

See http://www.haskell.org/ghc/docs/7.4.1/html/users_guide/ghci-faq.html

Last item in the list.

Cheers,
  Andres

-- 
Andres Löh, Haskell Consultant
Well-Typed LLP, http://www.well-typed.com



More information about the Beginners mailing list