def pkg.ask

ezx@1.11.0.0 · src/pkg/pkg.bend:1367

import ezx@1.11.0.0/src/pkg/pkg.bend as Pkg
import Base

1367# the walk over what has been read so far, and each file it asks for read
1368# and handed back, until it no longer asks
1369def pkg.ask(fuel: Nat, +top: String, +entry: String, +eb: String, +tree: Tree, +st: State) -> IO(Pkg):
1370  match fuel:
1371    case 0n:
1372      IO.die(Pkg, 1, "ez: the walk from " ++ entry ++ " asked too many questions")
1373    case 1n+f:
1374      +now = walk(resumed.fuel(tree, st), tree, eb, st)
1375      pkg.next(state.stop(now), top, entry, tree, now,
1376        t => s => pkg.ask(f, top, entry, eb, t, s))

Uses (12)

Used by (1)