Stdio.recv.loop: def of bolt@1.27.0.0 Import: import bolt@1.27.0.0/src/lsp/transport/stdio.bend as Stdio Lines 68-74 of bolt@1.27.0.0/src/lsp/transport/stdio.bend: https://jend.leeeet.dev/read.txt?path=bolt@1.27.0.0/src/lsp/transport/stdio.bend&start_line=68&end_line=74 import Base import bolt@1.27.0.0/src/lsp/frame.bend as Frame def recv.loop(fuel: Nat, h2: Stdio) -> IO(Stdio & Maybe<&2, String>): match fuel: case 0n: IO.pure(Stdio & Maybe<&2, String>, (h2, None{})) case 1n+f: Stdio{inp, out, +buf} = h2 recv.on(Frame.cut(buf), inp, out, buf, hh => recv.loop(f, hh)) Uses (10): https://jend.leeeet.dev/definition.txt?path=Base/base.bend&name=IO https://jend.leeeet.dev/definition.txt?path=Base/base.bend&name=IO.pure https://jend.leeeet.dev/definition.txt?path=Base/base.bend&name=Maybe https://jend.leeeet.dev/definition.txt?path=Base/base.bend&name=Nat https://jend.leeeet.dev/definition.txt?path=Base/base.bend&name=Pair https://jend.leeeet.dev/definition.txt?path=Base/base.bend&name=Sigma https://jend.leeeet.dev/definition.txt?path=Base/base.bend&name=String https://jend.leeeet.dev/definition.txt?path=bolt@1.27.0.0/src/lsp/frame.bend&name=cut https://jend.leeeet.dev/definition.txt?path=bolt@1.27.0.0/src/lsp/transport/stdio.bend&name=Stdio https://jend.leeeet.dev/definition.txt?path=bolt@1.27.0.0/src/lsp/transport/stdio.bend&name=recv.on