Skip to content

Latest commit

 

History

History
41 lines (26 loc) · 449 Bytes

io.md

File metadata and controls

41 lines (26 loc) · 449 Bytes

IO

putStr

putStr :: String -> ()

Displays a String on the standard output.

Example

(putStr "foo")

putStrLn

putStrLn :: String -> ()

Like putStr, but displays a newline at the end of the string and flushes the standard output.

Example

(putStrLn "foo")

getLine

getLine :: String

Reads a line on the standard output.

Example

(def foo (getLine))