A library for writing terminal-based scripts in elm. The IO type
provides an interface for constructing "computations" that may perform
IO effects. Something with type IO a is a lazy computation that when
run will produce an a, possibly IO side effects. See Console.Runner for
how to run such a computation.
Run an IO computation as a Task
Print a character to stdout
Print a string to stdout.
Print a string to stdout, followed by a newline.
Read a character from stdin
Read a line from stdin
Read characters from stdin until one matches the given character.
Write content to a file
Exit the program with the given exit code.
Apply a pure function to an IO value
Alternative interface to forEach
Run an IO computation for each element of a list
Use a pure value where an IO computation is expected.
Apply an IO function to an IO value
Convenient operator for apply, similar to ~ in the Signal module
Chain together IO computations
Operator version of andThen
Run one computation and then another, ignoring the first's output
Operator version of seq
Run the same computation over and over again forever.
An
IO ais a computation that does some I/O and eventually returns ana