[Hugs-users] extra newline after putStrLn?

Neil Mitchell ndmitchell at gmail.com
Sun Aug 3 20:59:33 UTC 2014

Generally in Hugs, after doing an IO thing, it writes out a newline.
In GHCi, it doesn't. On balance, I think the Hugs way is better, since
in GHC it's easy to get to:

Prelude> putStrLn "foo"
Prelude> putStr "foo"

While in Hugs:

Hugs> putStrLn "foo"

Hugs> putStr "foo"

So it's nothing fundamental, just a difference in what to do after
some arbitrary IO.

Thanks, Neil

On Sun, Aug 3, 2014 at 9:44 PM, Doug McIlroy <doug at cs.dartmouth.edu> wrote:
> Why does putStrln "" produce two newlines in hugs, but one in ghci?
> Doug McIlroy
> _______________________________________________
> Hugs-Users mailing list
> Hugs-Users at haskell.org
> http://www.haskell.org/mailman/listinfo/hugs-users

More information about the Hugs-Users mailing list