def read_line
import bend-stdio-pipes@0.2.0.0/impl.bend as Implimport Base
85# The next line of file, as it comes, without its LF or CRLF; None at the end of the file.
86def read_line(file: File, max: U32) -> IO(File & Result<&1, &1, U32 & String, Maybe<String>>):
87 IO.bind(
88 File & Result<&1, &1, U32 & String, String>,
89 File & Result<&1, &1, U32 & String, Maybe<String>>,
90 File.read_line(file, max),
91 read_line.got
92 )