ยค hIOSucc, hIOSuccF

Haskell Dialogue IO

Types

hIOSucc :: FudgetIO f => Request -> f b ho -> f b ho
hIOSuccF :: Request -> F a b -> F a b

Synopsis

hIOSucc request f

Description

hIOSucc allows a fudget (or kernel) to output an arbitrary Haskell IO request and wait for the response, which is expected to be Success. If not, hIOSucc aborts the program with an error message. Otherwise, the continuation is invoked.

Arguments

request :: Request
A Haskell IO request.
f :: f b ho
A continuation fudget (or kernel).

Example

 hIOSucc (WriteFile "hiscore" hiscorelist)

See Also

ioF, haskellIO, hIOerr, hIO.