def used
import ezx@1.11.0.0/src/doctor/plan.bend as Planimport Base
import ezx@1.11.0.0/src/ledger/manifest.bend as M
431# whether an import line names a dependency, by its hash or by its name
432def used(+hs: List<&2, String>, +dependency: M.Dep) -> Bool:
433 +nv = M.source.nv(M.source.dep(dependency))
434 Bool.or(has(hs, M.dep.hash(dependency)),
435 Bool.and(Bool.not(String.is_empty(nv)), has(hs, nv)))