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.

  1. IOErrorEnumReadOnly :: IOErrorEnum

    gi-gio GI.Gio.Enums

    File is read only.

  2. DBusInterfaceSkeletonFlagsHandleMethodInvocationsInThread :: DBusInterfaceSkeletonFlags

    gi-gio GI.Gio.Flags

    Each method invocation is handled in a thread dedicated to the invocation. This means that the method implementation can use blocking IO without blocking any other part of the process. It also means that the method implementation must use locking to access data structures used by other threads.

  3. DBusPropertyInfoFlagsReadable :: DBusPropertyInfoFlags

    gi-gio GI.Gio.Flags

    Property is readable.

  4. DBusServerFlagsRunInThread :: DBusServerFlags

    gi-gio GI.Gio.Flags

    All DBusServer::newConnection signals will run in separated dedicated threads (see signal for details).

  5. pollableStreamRead :: (HasCallStack, MonadIO m, IsInputStream a, IsCancellable b) => a -> ByteString -> Bool -> Maybe b -> m Int64

    gi-gio GI.Gio.Functions

    Tries to read from stream, as with inputStreamRead (if blocking is True) or pollableInputStreamReadNonblocking (if blocking is False). This can be used to more easily share code between blocking and non-blocking implementations of a method. If blocking is False, then stream must be a PollableInputStream for which pollableInputStreamCanPoll returns True, or else the behavior is undefined. If blocking is True, then stream does not need to be a PollableInputStream. Since: 2.34

  6. unixMountIsReadonly :: (HasCallStack, MonadIO m) => UnixMountEntry -> m Bool

    gi-gio GI.Gio.Functions

    Checks if a unix mount is mounted read only.

  7. fileCreateReadwrite :: (HasCallStack, MonadIO m, IsFile a, IsCancellable b) => a -> [FileCreateFlags] -> Maybe b -> m FileIOStream

    gi-gio GI.Gio.Interfaces.File

    Creates a new file and returns a stream for reading and writing to it. The file must not already exist. By default files created are generally readable by everyone, but if you pass FileCreateFlagsPrivate in flags the file will be made readable only to the current user, to the level that is supported on the target filesystem. 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 a file or directory with this name already exists, the IOErrorEnumExists error will be returned. Some file systems don't allow all file names, and may return an IOErrorEnumInvalidFilename error, and if the name is too long, IOErrorEnumFilenameTooLong will be returned. Other errors are possible too, and depend on what kind of filesystem the file is on. 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

  8. fileCreateReadwriteAsync :: (HasCallStack, MonadIO m, IsFile a, IsCancellable b) => a -> [FileCreateFlags] -> Int32 -> Maybe b -> Maybe AsyncReadyCallback -> m ()

    gi-gio GI.Gio.Interfaces.File

    Asynchronously creates a new file and returns a stream for reading and writing to it. The file must not already exist. For more details, see fileCreateReadwrite which is the synchronous version of this call. When the operation is finished, callback will be called. You can then call fileCreateReadwriteFinish to get the result of the operation. Since: 2.22

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

    gi-gio GI.Gio.Interfaces.File

    Finishes an asynchronous file create operation started with fileCreateReadwriteAsync. Since: 2.22

  10. fileOpenReadwrite :: (HasCallStack, MonadIO m, IsFile a, IsCancellable b) => a -> Maybe b -> m FileIOStream

    gi-gio GI.Gio.Interfaces.File

    Opens an existing file for reading and writing. The result is a FileIOStream that can be used to read and write 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. 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

Page 506 of many | Previous | Next