haskell print
C Language Print Function in Haskell
In Haskell, the equivalent of the C language's printf
function is the putStrLn
function. It is used to output a string to the console. Here's an example of how it's used:
main = do
putStrLn "Hello, world!"
This will output "Hello, world!" to the console.