| Safe Haskell | None |
|---|---|
| Language | Haskell2010 |
openBinaryFile :: PlatformPath -> IOMode -> IO Handle Source
Like openBinaryFile, 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.
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.
openExistingFile :: PlatformPath -> IOMode -> IO Handle Source
Like openExistingFile, 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
handleFinalizer :: FilePath -> MVar Handle__ -> IO () Source
type HandleFinalizer = FilePath -> MVar Handle__ -> IO () Source
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
addFilePathToIOError :: String -> PlatformPath -> IOException -> IOException Source
augmentError :: String -> PlatformPath -> IO a -> IO a Source
© The University of Glasgow and others
Licensed under a BSD-style license (see top of the page).
https://downloads.haskell.org/~ghc/9.12.1/docs/libraries/file-io-0.1.5-13a1/System-File-PlatformPath-Internal.html