file-io-0.1.2: Basic file IO operations via 'OsPath'
Safe HaskellNone
LanguageHaskell2010

System.File.PlatformPath.Internal

Synopsis

Documentation

withFile :: PlatformPath -> IOMode -> (Handle -> IO r) -> IO r Source #

Like withFile, but takes a PlatformPath instead of an OsPath.

withBinaryFile :: PlatformPath -> IOMode -> (Handle -> IO r) -> IO r Source #

Like withBinaryFile, but takes a PlatformPath instead of an OsPath.

withFile' :: PlatformPath -> IOMode -> (Handle -> IO r) -> IO r Source #

Like withFile', but takes a PlatformPath instead of an OsPath.

withBinaryFile' :: PlatformPath -> IOMode -> (Handle -> IO r) -> IO r Source #

Like withBinaryFile', but takes a PlatformPath instead of an OsPath.

readFile :: PlatformPath -> IO ByteString Source #

Like readFile, but takes a PlatformPath instead of an OsPath.

readFile' :: PlatformPath -> IO ByteString Source #

Like readFile', but takes a PlatformPath instead of an OsPath.

writeFile :: PlatformPath -> ByteString -> IO () Source #

Like writeFile, but takes a PlatformPath instead of an OsPath.

writeFile' :: PlatformPath -> ByteString -> IO () Source #

Like writeFile', but takes a PlatformPath instead of an OsPath.

appendFile :: PlatformPath -> ByteString -> IO () Source #

Like appendFile, but takes a PlatformPath instead of an OsPath.

appendFile' :: PlatformPath -> ByteString -> IO () Source #

Like appendFile', but takes a PlatformPath instead of an OsPath.

openFile :: PlatformPath -> IOMode -> IO Handle Source #

Like openFile, but takes a PlatformPath instead of an OsPath.

openFileWithCloseOnExec :: PlatformPath -> IOMode -> IO Handle Source #

Open a file and return the Handle.

Sets O_CLOEXEC on posix.

Since: file-io-0.1.2

openExistingFileWithCloseOnExec :: PlatformPath -> IOMode -> IO Handle Source #

Open an existing file and return the Handle.

Sets O_CLOEXEC on posix.

Since: file-io-0.1.2

addHandleFinalizer :: Handle -> HandleFinalizer -> IO () Source #

Add a finalizer to a Handle. Specifically, the finalizer will be added to the MVar of a file handle or the write-side MVar of a duplex handle. See Handle Finalizers for details.

withOpenFile' :: PlatformPath -> IOMode -> Bool -> Bool -> Bool -> (Handle -> IO r) -> Bool -> IO r Source #