putStr :: String -> ()
Displays a String on the standard output.
(putStr "foo")
putStrLn :: String -> ()
Like putStr
, but displays a newline at the end of the string and flushes the standard output.
(putStrLn "foo")
getLine :: String
Reads a line on the standard output.
(def foo (getLine))