def parsed.of
import ezx@1.11.0.0/src/pub/plan.bend as Planimport Base
import ezx@1.11.0.0/src/ledger/manifest.bend as M
import ezx@1.11.0.0/src/pub/world.bend as PW
736# the ledger read, a bad one when there is none; the planner reaches this
737# stage only past a ledger that parsed
738def parsed.of(got: Maybe<&2, String>) -> M.Read:
739 match got:
740 case None{}:
741 M.Bad{"no " ++ PW.toml()}
742 case Some{text}:
743 M.parse(text)