def file.slurp.next
import snap@1.4.0.0/src/file.bend as Fileimport Base
31# the handle comes back paired with what it read
32def file.slurp.next(
33 got: File & Result<&1, &1, U32 & String, String>,
34 acc: String,
35 rest: File -> String -> IO(String)
36) -> IO(String):
37 (file, res) = got
38 file.slurp.more(res, file, acc, rest)