throwErrno

throwErrno :: String -> IO a
base Foreign.C.Error
Throw an IOError corresponding to the current value of getErrno.
throwErrnoIf :: (a -> Bool) -> String -> IO a -> IO a
base Foreign.C.Error
Throw an IOError corresponding to the current value of getErrno if the result value of the IO action meets the given predicate.
throwErrnoIf_ :: (a -> Bool) -> String -> IO a -> IO ()
base Foreign.C.Error
as throwErrnoIf, but discards the result of the IO action after error handling.
throwErrnoIfMinus1 :: Num a => String -> IO a -> IO a
base Foreign.C.Error
Throw an IOError corresponding to the current value of getErrno if the IO action returns a result of -1.
throwErrnoIfMinus1_ :: Num a => String -> IO a -> IO ()
base Foreign.C.Error
as throwErrnoIfMinus1, but discards the result.
throwErrnoIfMinus1Retry :: Num a => String -> IO a -> IO a
base Foreign.C.Error
Throw an IOError corresponding to the current value of getErrno if the IO action returns a result of -1, but retries in case of an interrupted operation.
throwErrnoIfMinus1Retry_ :: Num a => String -> IO a -> IO ()
base Foreign.C.Error
as throwErrnoIfMinus1, but discards the result.
throwErrnoIfMinus1RetryMayBlock :: Num a => String -> IO a -> IO b -> IO a
base Foreign.C.Error
as throwErrnoIfMinus1Retry, but checks for operations that would block.
throwErrnoIfMinus1RetryMayBlock_ :: Num a => String -> IO a -> IO b -> IO ()
base Foreign.C.Error
as throwErrnoIfMinus1RetryMayBlock, but discards the result.
throwErrnoIfNull :: String -> IO (Ptr a) -> IO (Ptr a)
base Foreign.C.Error
Throw an IOError corresponding to the current value of getErrno if the IO action returns nullPtr.
throwErrnoIfNullRetry :: String -> IO (Ptr a) -> IO (Ptr a)
base Foreign.C.Error
Throw an IOError corresponding to the current value of getErrno if the IO action returns nullPtr, but retry in case of an interrupted operation.
throwErrnoIfNullRetryMayBlock :: String -> IO (Ptr a) -> IO b -> IO (Ptr a)
base Foreign.C.Error
as throwErrnoIfNullRetry, but checks for operations that would block.
throwErrnoIfRetry :: (a -> Bool) -> String -> IO a -> IO a
base Foreign.C.Error
as throwErrnoIf, but retry the IO action when it yields the error code eINTR - this amounts to the standard retry loop for interrupted POSIX system calls.
throwErrnoIfRetry_ :: (a -> Bool) -> String -> IO a -> IO ()
base Foreign.C.Error
as throwErrnoIfRetry, but discards the result.
throwErrnoIfRetryMayBlock :: (a -> Bool) -> String -> IO a -> IO b -> IO a
base Foreign.C.Error
as throwErrnoIfRetry, but additionally if the operation yields the error code eAGAIN or eWOULDBLOCK, an alternative action is executed before retrying.
throwErrnoIfRetryMayBlock_ :: (a -> Bool) -> String -> IO a -> IO b -> IO ()
base Foreign.C.Error
as throwErrnoIfRetryMayBlock, but discards the result.
throwErrnoPath :: String -> FilePath -> IO a
base Foreign.C.Error, unix System.Posix.Error
as throwErrno, but exceptions include the given path when appropriate.
throwErrnoPathIf :: (a -> Bool) -> String -> FilePath -> IO a -> IO a
base Foreign.C.Error, unix System.Posix.Error
as throwErrnoIf, but exceptions include the given path when appropriate.
throwErrnoPathIf_ :: (a -> Bool) -> String -> FilePath -> IO a -> IO ()
base Foreign.C.Error, unix System.Posix.Error
as throwErrnoIf_, but exceptions include the given path when appropriate.
throwErrnoPathIfMinus1 :: Num a => String -> FilePath -> IO a -> IO a
base Foreign.C.Error
as throwErrnoIfMinus1, but exceptions include the given path when appropriate.

Show more results