def scan.mod
import ezx@1.11.0.0/src/pkg/pkg.bend as Pkgimport Base
267# a module named after the header has ended is not part of the header, so the
268# line is ignored rather than followed
269def scan.mod(+head: Bool, spec: String, mods: List<&2, String>, foreign: List<&2, String>) -> Head:
270 match head:
271 case True{}:
272 Head{True{}, spec <> mods, foreign}
273 case False{}:
274 Head{False{}, mods, foreign}