type Answer
import ezx@1.11.0.0/src/doctor/world.bend as Worldimport Base
import ezx@1.11.0.0/src/lock/world.bend as W
30# the answer to one: what a program printed, and whether it ran; or the
31# sources as the lock lists them; or a package's tree as BEND_LIB holds it,
32# or that BEND_LIB holds none
33type Answer is Data:
34 Printed{ok: Bool, text: String} # Probe, Lib
35 Listed{listing: W.Listing} # Sources
36 Laid{manifest: String, srcs: List<&2, String>} # Tree, there
37 Away{} # Tree, not there
38 Held{got: Maybe<&2, String>} # Name: the file's text, None when it is not there