From: Simon Marlow Date: Fri, 16 Oct 2009 11:24:04 +0000 (+0000) Subject: improve the documentation for throwErrnoIfRetry X-Git-Url: http://git.megacz.com/?a=commitdiff_plain;h=c9a570d40a51e7af771ad66074b445382463aa2f;p=ghc-base.git improve the documentation for throwErrnoIfRetry --- diff --git a/Foreign/C/Error.hs b/Foreign/C/Error.hs index d2e6f64..55358eb 100644 --- a/Foreign/C/Error.hs +++ b/Foreign/C/Error.hs @@ -358,8 +358,9 @@ throwErrnoIfRetry pred loc f = else throwErrno loc else return res --- | as 'throwErrnoIfRetry', but checks for operations that would block and --- executes an alternative action before retrying in that case. +-- | as 'throwErrnoIfRetry', but additionlly if the operation +-- yields the error code 'eAGAIN' or 'eWOULDBLOCK', an alternative +-- action is executed before retrying. -- throwErrnoIfRetryMayBlock :: (a -> Bool) -- ^ predicate to apply to the result value