Skip to main content
Version: Next

io

let print: (_: string) => unit

Prints an string to stdout.

let println: (_: string) => unit

Prints an string to stdout, ended with a newline.

let eprint: (_: string) => unit

Prints an string to stderr.

let eprintln: (_: string) => unit

Prints an string to stderr, ended with a newline.

let log: <a>(_: a) => unit

Logs a value.

let set_test_print: (_: unit) => unit

Turns on the printing of `test` prefixed values at the end of tests. This is the default behaviour.

let unset_test_print: (_: unit) => unit

Turns off the printing of `test` prefixed values at the end of tests.