Run.hub.got: def of ezx@1.11.0.0 Import: import ezx@1.11.0.0/src/lock/run.bend as Run Lines 125-133 of ezx@1.11.0.0/src/lock/run.bend: https://jend.leeeet.dev/read.txt?path=ezx@1.11.0.0/src/lock/run.bend&start_line=125&end_line=133 import Base import ezx@1.11.0.0/src/hub/hub.bend as Web import ezx@1.11.0.0/src/lock/lock.bend as L import ezx@1.11.0.0/src/lock/world.bend as W # a hub package's files, once its manifest arrived def hub.got(got: Web.Got, +hub: String, +hash: String) -> IO(W.Answer): match got: case Web.Miss{why}: IO.pure(W.Answer, W.Miss{why}) case Web.Have{+body}: do IO: gs : List<&2, Web.Got> <- hub.all(hub, hash, L.manifest.files(String.lines(body))) return gots(W.Served{}, body, gs, []) Uses (12): https://jend.leeeet.dev/definition.txt?path=Base/base.bend&name=IO https://jend.leeeet.dev/definition.txt?path=Base/base.bend&name=IO.bind https://jend.leeeet.dev/definition.txt?path=Base/base.bend&name=IO.pure https://jend.leeeet.dev/definition.txt?path=Base/base.bend&name=List https://jend.leeeet.dev/definition.txt?path=Base/base.bend&name=String https://jend.leeeet.dev/definition.txt?path=Base/base.bend&name=String.lines https://jend.leeeet.dev/definition.txt?path=ezx@1.11.0.0/src/hub/hub.bend&name=Got https://jend.leeeet.dev/definition.txt?path=ezx@1.11.0.0/src/lock/lock.bend&name=manifest.files https://jend.leeeet.dev/definition.txt?path=ezx@1.11.0.0/src/lock/run.bend&name=gots https://jend.leeeet.dev/definition.txt?path=ezx@1.11.0.0/src/lock/run.bend&name=hub.all https://jend.leeeet.dev/definition.txt?path=ezx@1.11.0.0/src/lock/world.bend&name=Answer https://jend.leeeet.dev/definition.txt?path=ezx@1.11.0.0/src/lock/world.bend&name=How