hIO :: FudgetIO f => Request -> (Response -> f b ho) -> f b ho 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 -> f b ho
hIO (ReadFile "/etc/passwd") $ \(Str s) -> ...