def stdio.batch
import ezmcp@0.1.0.0/src/io.bend as Ioimport Base
import emerging-ezjson@1.2.0.0/src/value.bend as Value
import ezmcp@0.1.0.0/src/line.bend as Line
255# a batch's replies: nothing when there are none, else one line
256def stdio.batch(replies: Maybe<&2, Value.Json>) -> IO(Unit):
257 match replies:
258 case None{}:
259 IO.pure(Unit, Unit{})
260 case Some{batch}:
261 IO.write(Line.frame(batch))