IO
Import IO for effectful host operations. Recoverable operations return
Result; costs depend on the installed host and payload size.
Files
readText!
Reads the file at the supplied path as strict UTF-8. Success returns Ok text.
Failure returns Err with an IOError that includes the path when
available.
writeText!
Writes the second argument to the path supplied first using strict UTF-8.
Success returns Ok (); failure returns an error with the path when available.
Standard streams
readStdin!
Reads standard input as strict UTF-8. Stream errors do not attach a path.
writeStdout!
Writes text to standard output. Success returns Ok (); stream errors do not
attach a path.
writeStderr!
Writes text to standard error. Success returns Ok (); stream errors do not
attach a path.
Process
arguments!
Returns process arguments in host-provided order.
exit!
Terminates through the installed runtime host with a status from 0 through
255. An out-of-range status fails with fatal diagnostic E3030 before the
host is called.
The ! suffix participates in Jazz's current
purity contract.