[Haskell-cafe] IO () and IO [()]

Neil Mitchell ndmitchell at gmail.com
Mon Mar 10 18:47:47 EDT 2008


Hi

>  BTW, considering how often is (putStrLn.show)  used, it is surprising
>  that there is no Ln variant for print (just like it happens with
>  putStr and putStrLn)

print = putStrLn . show

There is no non-trailing-line version of print.

Thanks

Neil


More information about the Haskell-Cafe mailing list