Hoogle Search
Within LTS Haskell 24.45 (ghc-9.10.3)
Note that Stackage only displays results for the latest LTS and Nightly snapshot. Learn more.
appInfoSetAsDefaultForType :: (HasCallStack, MonadIO m, IsAppInfo a) => a -> Text -> m ()gi-gio GI.Gio.Interfaces.AppInfo Sets the application as the default handler for a given type.
appInfoSetAsLastUsedForType :: (HasCallStack, MonadIO m, IsAppInfo a) => a -> Text -> m ()gi-gio GI.Gio.Interfaces.AppInfo Sets the application as the last used application for a given type. This will make the application appear as first in the list returned by appInfoGetRecommendedForType, regardless of the default application for that content type.
-
gi-gio GI.Gio.Interfaces.DesktopAppInfoLookup Deprecated: (Since version 2.28)The DesktopAppInfoLookup interface is deprecated andunused by GIO.
driveCanPollForMedia :: (HasCallStack, MonadIO m, IsDrive a) => a -> m Boolgi-gio GI.Gio.Interfaces.Drive Checks if a drive can be polled for media changes.
-
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.
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.
-
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
fileGetChildForDisplayName :: (HasCallStack, MonadIO m, IsFile a) => a -> Text -> m Filegi-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.
fileNewForCommandlineArg :: (HasCallStack, MonadIO m) => [Char] -> m Filegi-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.
fileNewForCommandlineArgAndCwd :: (HasCallStack, MonadIO m) => [Char] -> [Char] -> m Filegi-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