hIO :: (FudgetIO c) => Request -> (_Response -> c a b) -> c a b hIOF :: Request -> (Response -> F a b) -> F a b
hIO request f
hIO
allows a fudget (or kernel) to output an arbitrary Haskell IO request and
wait for the response. If the response is a failure, hIO
aborts the
program with an error message.
request :: Request
f :: _Response -> c a b
hIO (ReadFile "/etc/passwd") $ \(Str s) -> ...