Hoogle Search
Within LTS Haskell 24.52 (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 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
-
gi-gio GI.Gio.Interfaces.PollableInputStream Attempts to read up to count bytes from stream into buffer, as with inputStreamRead. If stream is not currently readable, this will immediately return IOErrorEnumWouldBlock, and you can use pollableInputStreamCreateSource to create a Source that will be triggered when stream is readable. Note that since this method never blocks, you cannot actually use cancellable to cancel it. However, it will return an error if cancellable has already been cancelled when you call, which may happen if you call this method after a source triggers due to having been cancelled. The behaviour of this method is undefined if pollableInputStreamCanPoll returns False for stream.
-
gi-gio GI.Gio.Objects.BufferedInputStream Tries to read a single byte from the stream or the buffer. Will block during this read. On success, the byte read from the stream is returned. On end of stream -1 is returned but it's not an exceptional error and error is not set. 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 an operation was partially finished when the operation was cancelled the partial result will be returned, without an error. On error -1 is returned and error is set accordingly.
-
gi-gio GI.Gio.Objects.DataInputStream Reads an unsigned 8-bit/1-byte value from stream.
-
gi-gio GI.Gio.Objects.DataInputStream Reads a 16-bit/2-byte value from stream. In order to get the correct byte order for this read operation, see dataInputStreamGetByteOrder and dataInputStreamSetByteOrder.
-
gi-gio GI.Gio.Objects.DataInputStream Reads a signed 32-bit/4-byte value from stream. In order to get the correct byte order for this read operation, see dataInputStreamGetByteOrder and dataInputStreamSetByteOrder. 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.
-
gi-gio GI.Gio.Objects.DataInputStream Reads a 64-bit/8-byte value from stream. In order to get the correct byte order for this read operation, see dataInputStreamGetByteOrder and dataInputStreamSetByteOrder. 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.