Hoogle Search

Within LTS Haskell 24.64 (ghc-9.10.3)

Note that Stackage only displays results for the latest LTS and Nightly snapshot. Learn more.

  1. driveCanPollForMedia :: (HasCallStack, MonadIO m, IsDrive a) => a -> m Bool

    gi-gio GI.Gio.Interfaces.Drive

    Checks if a drive can be polled for media changes.

  2. drivePollForMedia :: (HasCallStack, MonadIO m, IsDrive a, IsCancellable b) => a -> Maybe b -> Maybe AsyncReadyCallback -> m ()

    gi-gio GI.Gio.Interfaces.Drive

    Asynchronously polls drive to see if media has been inserted or removed. When the operation is finished, callback will be called. You can then call drivePollForMediaFinish to obtain the result of the operation.

  3. drivePollForMediaFinish :: (HasCallStack, MonadIO m, IsDrive a, IsAsyncResult b) => a -> b -> m ()

    gi-gio GI.Gio.Interfaces.Drive

    Finishes an operation started with drivePollForMedia on a drive.

  4. fileBuildAttributeListForCopy :: (HasCallStack, MonadIO m, IsFile a, IsCancellable b) => a -> [FileCopyFlags] -> Maybe b -> m Text

    gi-gio GI.Gio.Interfaces.File

    Prepares the file attribute query string for copying to file. This function prepares an attribute query string to be passed to fileQueryInfo to get a list of attributes normally copied with the file (see fileCopyAttributes for the detailed description). This function is used by the implementation of fileCopyAttributes and is useful when one needs to query and set the attributes in two stages (e.g., for recursive move of a directory). Since: 2.68

  5. fileGetChildForDisplayName :: (HasCallStack, MonadIO m, IsFile a) => a -> Text -> m File

    gi-gio GI.Gio.Interfaces.File

    Gets the child of file for a given displayName (i.e. a UTF-8 version of the name). If this function fails, it returns Nothing and error will be set. This is very useful when constructing a File for a new file and the user entered the filename in the user interface, for instance when you select a directory and type a filename in the file selector. This call does no blocking I/O.

  6. fileNewForCommandlineArg :: (HasCallStack, MonadIO m) => [Char] -> m File

    gi-gio GI.Gio.Interfaces.File

    Creates a File with the given argument from the command line. The value of arg can be either a URI, an absolute path or a relative path resolved relative to the current working directory. This operation never fails, but the returned object might not support any I/O operation if arg points to a malformed path. Note that on Windows, this function expects its argument to be in UTF-8 -- not the system code page. This means that you should not use this function with string from argv as it is passed to main(). g_win32_get_command_line() will return a UTF-8 version of the commandline. Application also uses UTF-8 but applicationCommandLineCreateFileForArg may be more useful for you there. It is also always possible to use this function with OptionContext arguments of type OptionArgFilename.

  7. fileNewForCommandlineArgAndCwd :: (HasCallStack, MonadIO m) => [Char] -> [Char] -> m File

    gi-gio GI.Gio.Interfaces.File

    Creates a File with the given argument from the command line. This function is similar to fileNewForCommandlineArg except that it allows for passing the current working directory as an argument instead of using the current working directory of the process. This is useful if the commandline argument was given in a context other than the invocation of the current process. See also applicationCommandLineCreateFileForArg. Since: 2.36

  8. fileNewForPath :: (HasCallStack, MonadIO m) => [Char] -> m File

    gi-gio GI.Gio.Interfaces.File

    Constructs a File for a given path. This operation never fails, but the returned object might not support any I/O operation if path is malformed.

  9. fileNewForUri :: (HasCallStack, MonadIO m) => Text -> m File

    gi-gio GI.Gio.Interfaces.File

    Constructs a File for a given URI. This operation never fails, but the returned object might not support any I/O operation if uri is malformed or if the uri type is not supported.

  10. iconNewForString :: (HasCallStack, MonadIO m) => Text -> m Icon

    gi-gio GI.Gio.Interfaces.Icon

    Generate a Icon instance from str. This function can fail if str is not valid - see iconToString for discussion. If your application or library provides one or more Icon implementations you need to ensure that each GType is registered with the type system prior to calling iconNewForString. Since: 2.20

Page 447 of many | Previous | Next