unix-2.4.2.0: POSIX functionality

Portability | non-portable (requires POSIX)
Stability | provisional
Maintainer | libraries@haskell.org

System.Posix.Error

Description

POSIX error support

Synopsis

- throwErrnoPath :: String -> FilePath -> IO a
- throwErrnoPathIf :: (a -> Bool) -> String -> FilePath -> IO a -> IO a
- throwErrnoPathIf_ :: (a -> Bool) -> String -> FilePath -> IO a -> IO ()
- throwErrnoPathIfRetry :: (a -> Bool) -> String -> FilePath -> IO a -> IO a
- throwErrnoPathIfNull :: String -> FilePath -> IO (Ptr a) -> IO (Ptr a)
- throwErrnoPathIfNullRetry :: String -> FilePath -> IO (Ptr a) -> IO (Ptr a)
- throwErrnoPathIfMinus1 :: Num a => String -> FilePath -> IO a -> IO a
- throwErrnoPathIfMinus1_ :: Num a => String -> FilePath -> IO a -> IO ()
- throwErrnoPathIfMinus1Retry :: Num a => String -> FilePath -> IO a -> IO a

# Documentation

throwErrnoPath :: String -> FilePath -> IO aSource

as `throwErrno`, but exceptions include the given path when appropriate.

throwErrnoPathIf :: (a -> Bool) -> String -> FilePath -> IO a -> IO aSource

as `throwErrnoIf`, but exceptions include the given path when appropriate.

throwErrnoPathIf_ :: (a -> Bool) -> String -> FilePath -> IO a -> IO ()Source

as `throwErrnoIf_`, but exceptions include the given path when appropriate.

throwErrnoPathIfRetry :: (a -> Bool) -> String -> FilePath -> IO a -> IO aSource

throwErrnoPathIfNull :: String -> FilePath -> IO (Ptr a) -> IO (Ptr a)Source

as `throwErrnoIfNull`, but exceptions include the given path when appropriate.

throwErrnoPathIfNullRetry :: String -> FilePath -> IO (Ptr a) -> IO (Ptr a)Source

throwErrnoPathIfMinus1 :: Num a => String -> FilePath -> IO a -> IO aSource

as `throwErrnoIfMinus1`, but exceptions include the given path when appropriate.

throwErrnoPathIfMinus1_ :: Num a => String -> FilePath -> IO a -> IO ()Source

as `throwErrnoIfMinus1_`, but exceptions include the given path when appropriate.

throwErrnoPathIfMinus1Retry :: Num a => String -> FilePath -> IO a -> IO aSource