Hoogle Search
Within LTS Haskell 24.39 (ghc-9.10.3)
Note that Stackage only displays results for the latest LTS and Nightly snapshot. Learn more.
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
fileNewForPath :: (HasCallStack, MonadIO m) => [Char] -> m Filegi-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.
fileNewForUri :: (HasCallStack, MonadIO m) => Text -> m Filegi-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.
iconNewForString :: (HasCallStack, MonadIO m) => Text -> m Icongi-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
proxyGetDefaultForProtocol :: (HasCallStack, MonadIO m) => Text -> m (Maybe Proxy)gi-gio GI.Gio.Interfaces.Proxy Find the gio-proxy extension point for a proxy implementation that supports the specified protocol. Since: 2.26
-
gi-gio GI.Gio.Objects.ApplicationCommandLine Creates a File corresponding to a filename that was given as part of the invocation of cmdline. This differs from fileNewForCommandlineArg in that it resolves relative pathnames using the current working directory of the invoking process rather than the local process. Since: 2.36
-
gi-gio GI.Gio.Objects.ApplicationCommandLine Gets the platform data associated with the invocation of cmdline. This is a GVariant dictionary containing information about the context in which the invocation occurred. It typically contains information like the current working directory and the startup notification ID. It comes from an untrusted external process and hence the types of all values must be validated before being used. For local invocation, it will be Nothing. Since: 2.28
-
gi-gio GI.Gio.Objects.ApplicationCommandLine Construct a GValueConstruct with valid value for the “platform-data” property. This is rarely needed directly, but it is used by new.