lean4-htt/tests/lean/io_process_echo.lean
Leonardo de Moura f0352d31a1 feat(library/type_context, library): inout ==> out modifier in type class declarations
@kha: I decided to implement this change before I start the
type_context modifications. The change did not affect the corelib and
test suite much. The only annoying problem is that `out` cannot be
used to name locals anymore.
2017-12-15 14:46:47 -08:00

10 lines
176 B
Text

import system.io
variable [io.interface]
def main : io unit := do
handle ← io.cmd {cmd := "echo", args := ["Hello World!"]},
io.put_str handle,
return ()
#eval main