[Haskell-cafe] Re: Embedding newlines into a string?

Tillmann Rendel rendel at daimi.au.dk
Mon Apr 14 05:12:26 EDT 2008

Neil Mitchell wrote:
> Unlines puts a trailing new line at the end of every
> line, including the final one. putStrLn puts an additional trailing
> new line, so you get 2 at the end.

Thanks for that clarification.

> mapM_ putStrLn == putStr . unlines

I'm wondering which (==) you mean here ;)


More information about the Haskell-Cafe mailing list