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.

  1. fileReplaceReadwriteAsync :: (HasCallStack, MonadIO m, IsFile a, IsCancellable b) => a -> Maybe Text -> Bool -> [FileCreateFlags] -> Int32 -> Maybe b -> Maybe AsyncReadyCallback -> m ()

    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

  2. fileReplaceReadwriteFinish :: (HasCallStack, MonadIO m, IsFile a, IsAsyncResult b) => a -> b -> m FileIOStream

    gi-gio GI.Gio.Interfaces.File

    Finishes an asynchronous file replace operation started with fileReplaceReadwriteAsync. Since: 2.22

  3. fileSupportsThreadContexts :: (HasCallStack, MonadIO m, IsFile a) => a -> m Bool

    gi-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

  4. pollableInputStreamIsReadable :: (HasCallStack, MonadIO m, IsPollableInputStream a) => a -> m Bool

    gi-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

  5. pollableInputStreamReadNonblocking :: (HasCallStack, MonadIO m, IsPollableInputStream a, IsCancellable b) => a -> Maybe ByteString -> Maybe b -> m (Int64, Maybe ByteString)

    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.

  6. bufferedInputStreamReadByte :: (HasCallStack, MonadIO m, IsBufferedInputStream a, IsCancellable b) => a -> Maybe b -> m Int32

    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.

  7. dataInputStreamReadByte :: (HasCallStack, MonadIO m, IsDataInputStream a, IsCancellable b) => a -> Maybe b -> m Word8

    gi-gio GI.Gio.Objects.DataInputStream

    Reads an unsigned 8-bit/1-byte value from stream.

  8. dataInputStreamReadInt16 :: (HasCallStack, MonadIO m, IsDataInputStream a, IsCancellable b) => a -> Maybe b -> m Int16

    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.

  9. dataInputStreamReadInt32 :: (HasCallStack, MonadIO m, IsDataInputStream a, IsCancellable b) => a -> Maybe b -> m Int32

    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.

  10. dataInputStreamReadInt64 :: (HasCallStack, MonadIO m, IsDataInputStream a, IsCancellable b) => a -> Maybe b -> m Int64

    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.

Page 508 of many | Previous | Next