putStrLn
putStrLn is a standard function in Haskell used to print a line of text to the standard output. It is an IO action that, when executed, outputs the given string followed by a newline character.
Type and behavior: putStrLn has the type signature putStrLn :: String -> IO (). It takes a String and
Relation to other IO operations: putStrLn is a convenience wrapper around putStr that adds a trailing newline.
Usage: putStrLn is commonly used in simple programs and examples to display messages to the user. Example: