ref: e8c2fe57e7ec1d7465eb6f00bdb7aad8f4264c29
dir: /test/catfile.myr/
/* checks that we can read a data file. */
use std
const main = {args : byte[:][:]
var r
r = std.slurp("data/catfile-in")
match r
| `std.Ok dat: std.write(1, dat)
| `std.Fail msg: std.put("Failed to read file: %s\n", msg)
;;
-> 0
}