Stdout
line : Str -> Task {} *
Write the given string to standard output, followed by a newline.
To write to
stdout
without the newline, seeStdout.write
.
write : Str -> Task {} *
Write the given string to standard output.
Note that many terminals will not actually display strings that are written to them until they receive a newline, so this may appear to do nothing until you write a newline!
To write to
stdout
with a newline at the end, seeStdout.line
.
flush : Task {} *
Flush the standard output. This will cause any buffered output to be written out. This is typically to the terminal but may be captured and written to a file.
This may fail if the buffered output could not be written due to I/O errors or EOF being reached.