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