Hoogle Search
Within LTS Haskell 24.68 (ghc-9.10.3)
Note that Stackage only displays results for the latest LTS and Nightly snapshot. Learn more.
-
gi-gio GI.Gio.Interfaces.File Asynchronously opens file for reading and writing. For more details, see fileOpenReadwrite which is the synchronous version of this call. When the operation is finished, callback will be called. You can then call fileOpenReadwriteFinish to get the result of the operation. Since: 2.22
-
gi-gio GI.Gio.Interfaces.File Finishes an asynchronous file read operation started with fileOpenReadwriteAsync. Since: 2.22
-
gi-gio GI.Gio.Interfaces.File Opens a file for reading. The result is a FileInputStream that can be used to read the contents of the file. If cancellable is not Nothing, then the operation can be cancelled by triggering the cancellable object from another thread. If the operation was cancelled, the error IOErrorEnumCancelled will be returned. If the file does not exist, the IOErrorEnumNotFound error will be returned. If the file is a directory, the IOErrorEnumIsDirectory error will be returned. Other errors are possible too, and depend on what kind of filesystem the file is on.
-
gi-gio GI.Gio.Interfaces.File Asynchronously opens file for reading. For more details, see fileRead which is the synchronous version of this call. When the operation is finished, callback will be called. You can then call fileReadFinish to get the result of the operation.
-
gi-gio GI.Gio.Interfaces.File Finishes an asynchronous file read operation started with fileReadAsync.
-
gi-gio GI.Gio.Interfaces.File Returns an output stream for overwriting the file in readwrite mode, possibly creating a backup copy of the file first. If the file doesn't exist, it will be created. For details about the behaviour, see fileReplace which does the same thing but returns an output stream only. Note that in many non-local file cases read and write streams are not supported, so make sure you really need to do read and write streaming, rather than just opening for reading or writing. Since: 2.22
-
gi-gio GI.Gio.Interfaces.File Asynchronously overwrites the file in read-write mode, replacing the contents, possibly creating a backup copy of the file first. For more details, see fileReplaceReadwrite which is the synchronous version of this call. When the operation is finished, callback will be called. You can then call fileReplaceReadwriteFinish to get the result of the operation. Since: 2.22
-
gi-gio GI.Gio.Interfaces.File Finishes an asynchronous file replace operation started with fileReplaceReadwriteAsync. Since: 2.22
fileSupportsThreadContexts :: (HasCallStack, MonadIO m, IsFile a) => a -> m Boolgi-gio GI.Gio.Interfaces.File Checks if file supports [thread-default contexts][g-main-context-push-thread-default-context]. If this returns False, you cannot perform asynchronous operations on file in a thread that has a thread-default context. Since: 2.22
pollableInputStreamIsReadable :: (HasCallStack, MonadIO m, IsPollableInputStream a) => a -> m Boolgi-gio GI.Gio.Interfaces.PollableInputStream Checks if stream can be read. Note that some stream types may not be able to implement this 100% reliably, and it is possible that a call to inputStreamRead after this returns True would still block. To guarantee non-blocking behavior, you should always use pollableInputStreamReadNonblocking, which will return a IOErrorEnumWouldBlock error rather than blocking. The behaviour of this method is undefined if pollableInputStreamCanPoll returns False for stream. Since: 2.28