{ "schema": "ailang/v0", "name": "fn_with_do_seq", "imports": [], "defs": [ { "kind": "fn", "name": "main", "doc": "Print two Ints in sequence. Exercises TermDo, TermSeq, and the IO effect on a fn type. The trailing unit return is implicit in the last Do (op returns Unit).", "type": { "k": "fn", "params": [], "ret": { "k": "con", "name": "Unit" }, "effects": ["IO"] }, "params": [], "body": { "t": "seq", "lhs": { "t": "do", "op": "io/print_int", "args": [ { "t": "lit", "lit": { "kind": "int", "value": 1 } } ] }, "rhs": { "t": "do", "op": "io/print_int", "args": [ { "t": "lit", "lit": { "kind": "int", "value": 2 } } ] } } } ] }