@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.
10 lines
176 B
Text
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
|