lib/effs/io.bend relies on unsafe/foreign
raw source on the hub · import 0x0bae9aeb11ebfcadb010bbe6e89fbbff/lib/effs/io.bend as Io
1 import
import Base
Definitions
def out_of source · line 9 · raw
@r:Result<&1, &1, Pair(U32, String), String> -> String
Standard output of a command; "" if it failed.
def ok_of source · line 16 · raw
@r:Result<&1, &1, Pair(U32, String), String> -> Bool
def sh source · line 23 · raw
@cmd:String -> IO(String)
def ok source · line 28 · raw
@cmd:String -> IO(Bool)
def after_write source · line 33 · raw
@r:Pair(File, Result<&1, &1, Pair(U32, String), Unit>) -> IO(Unit)
def write_opened source · line 38 · raw
@r:Result<&1, &1, Pair(U32, String), File> -> @text:String -> IO(Unit)
def write_file source · line 47 · raw
@path:String -> @text:String -> IO(Unit)
Effects (foreign code)
effect Proc.run source · line 5 · raw
@cmd:String -> IO(Result<&1, &1, Pair(U32, String), String>)
foreign: lib/effs/proc_run.c