Copyright | (c) The University of Glasgow 2002 |
---|---|
License | BSD-style (see the file libraries/base/LICENSE) |
Maintainer | [email protected] |
Stability | provisional |
Portability | non-portable (requires POSIX) |
Safe Haskell | Safe |
Language | Haskell2010 |
Internal stuff: support for ByteString FilePaths
type RawFilePath = ByteString Source
A literal POSIX file path
withFilePath :: RawFilePath -> (CString -> IO a) -> IO a Source
peekFilePath :: CString -> IO RawFilePath Source
peekFilePathLen :: CStringLen -> IO RawFilePath Source
throwErrnoPathIfMinus1Retry :: (Eq a, Num a) => String -> RawFilePath -> IO a -> IO a Source
throwErrnoPathIfMinus1Retry_ :: (Eq a, Num a) => String -> RawFilePath -> IO a -> IO () Source
throwErrnoPathIfNullRetry :: String -> RawFilePath -> IO (Ptr a) -> IO (Ptr a) Source
throwErrnoPathIfRetry :: (a -> Bool) -> String -> RawFilePath -> IO a -> IO a Source
throwErrnoPath :: String -> RawFilePath -> IO a Source
as throwErrno
, but exceptions include the given path when appropriate.
throwErrnoPathIf :: (a -> Bool) -> String -> RawFilePath -> IO a -> IO a Source
as throwErrnoIf
, but exceptions include the given path when appropriate.
throwErrnoPathIf_ :: (a -> Bool) -> String -> RawFilePath -> IO a -> IO () Source
as throwErrnoIf_
, but exceptions include the given path when appropriate.
throwErrnoPathIfNull :: String -> RawFilePath -> IO (Ptr a) -> IO (Ptr a) Source
as throwErrnoIfNull
, but exceptions include the given path when appropriate.
throwErrnoPathIfMinus1 :: (Eq a, Num a) => String -> RawFilePath -> IO a -> IO a Source
as throwErrnoIfMinus1
, but exceptions include the given path when appropriate.
throwErrnoPathIfMinus1_ :: (Eq a, Num a) => String -> RawFilePath -> IO a -> IO () Source
as throwErrnoIfMinus1_
, but exceptions include the given path when appropriate.
© The University of Glasgow and others
Licensed under a BSD-style license (see top of the page).
https://downloads.haskell.org/~ghc/7.10.3/docs/html/libraries/unix-2.7.1.0/System-Posix-ByteString-FilePath.html