Reading from handles, files, and processes as lazy lists. #
Read lines of text from a handle, as a lazy list in IO
.
Equations
- One or more equations did not get rendered due to their size.
Instances For
Read lines of text from a file, as a lazy list in IO
.
Equations
- MLList.lines f = MLList.squash fun (x : Unit) => do let __do_lift ← IO.FS.Handle.mk f IO.FS.Mode.read pure (MLList.linesFromHandle __do_lift)
Instances For
def
MLList.runCmd.put
(child : IO.Process.Child { stdin := IO.Process.Stdio.piped, stdout := IO.Process.Stdio.piped, stderr := IO.Process.Stdio.piped })
(input : String)
:
IO
(IO.Process.Child
{ stdin := IO.Process.Stdio.null, stdout := IO.Process.Stdio.piped, stderr := IO.Process.Stdio.piped })
Equations
- One or more equations did not get rendered due to their size.