Skip to main content
`print` would enclose the _Hello, world!_ with quotation marks: "
Source Link

There is a function for that called replicateM_. Here's how you use it.

import Control.Monad

main = do
    replicateM_ 20 $ printputStrLn "Hello, world!"

There is a function for that called replicateM_. Here's how you use it.

import Control.Monad

main = do
    replicateM_ 20 $ print "Hello, world!"

There is a function for that called replicateM_. Here's how you use it.

import Control.Monad

main = do
    replicateM_ 20 $ putStrLn "Hello, world!"
Source Link

There is a function for that called replicateM_. Here's how you use it.

import Control.Monad

main = do
    replicateM_ 20 $ print "Hello, world!"