Check out example codes for "haskell print". It will help you in understanding the concepts better.

Code Example 1

-- Use 'putStrLn' to print

ghci> putStrLn "Hello World!"
Hello World!

-- Type of 'putStrLn' function
ghci> :t putStrLn  
putStrLn :: String -> IO ()

Learn ReactJs, React Native from akashmittal.com