Hoogle Search
Within LTS Haskell 24.69 (ghc-9.10.3)
Note that Stackage only displays results for the latest LTS and Nightly snapshot. Learn more.
AnotherSettingsBindFlags :: Int -> SettingsBindFlagsgi-gio GI.Gio.Flags Catch-all for unknown values
OutputStreamSpliceFlagsCloseTarget :: OutputStreamSpliceFlagsgi-gio GI.Gio.Flags Close the target stream after the splice.
contentTypeSetMimeDirs :: (HasCallStack, MonadIO m) => Maybe [Text] -> m ()gi-gio GI.Gio.Functions Set the list of directories used by GIO to load the MIME database. If dirs is Nothing, the directories used are the default:
- the mime subdirectory of the directory in $XDG_DATA_HOME
- the mime subdirectory of every directory in $XDG_DATA_DIRS
C code
// Load MIME data from the system g_content_type_set_mime_dirs (NULL); // Isolate the environment g_test_init (&argc, &argv, G_TEST_OPTION_ISOLATE_DIRS, NULL); … return g_test_run ();
Since: 2.60-
gi-gio GI.Gio.Functions Creates a keyfile-backed SettingsBackend. The filename of the keyfile to use is given by filename. All settings read to or written from the backend must fall under the path given in rootPath (which must start and end with a slash and not contain two consecutive slashes). rootPath may be "/". If rootGroup is non-Nothing then it specifies the name of the keyfile group used for keys that are written directly below rootPath. For example, if rootPath is "/apps/example/" and rootGroup is "toplevel", then settings the key "/apps/example/enabled" to a value of True will cause the following to appear in the keyfile:
[toplevel] enabled=true
If rootGroup is Nothing then it is not permitted to store keys directly below the rootPath. For keys not stored directly below rootPath (ie: in a sub-path), the name of the subpath (with the final slash stripped) is used as the name of the keyfile group. To continue the example, if "/apps/example/profiles/default/font-size" were set to 12 then the following would appear in the keyfile:[profiles/default] font-size=12
The backend will refuse writes (and return writability as being False) for keys outside of rootPath and, in the event that rootGroup is Nothing, also for keys directly under rootPath. Writes will also be refused if the backend detects that it has the inability to rewrite the keyfile (ie: the containing directory is not writable). There is no checking done for your key namespace clashing with the syntax of the key file format. For example, if you have '[' or ']' characters in your path names or '=' in your key names you may be in trouble. The backend reads default values from a keyfile called defaults in the directory specified by the GKeyfileSettingsBackend:defaults-dir property, and a list of locked keys from a text file with the name locks in the same location. memorySettingsBackendNew :: (HasCallStack, MonadIO m) => m SettingsBackendgi-gio GI.Gio.Functions Creates a memory-backed SettingsBackend. This backend allows changes to settings, but does not write them to any backing storage, so the next time you run your application, the memory backend will start out with the default values again. Since: 2.28
nullSettingsBackendNew :: (HasCallStack, MonadIO m) => m SettingsBackendgi-gio GI.Gio.Functions Creates a readonly SettingsBackend. This backend does not allow changes to settings, so all settings will always have their default values. Since: 2.28
appInfoResetTypeAssociations :: (HasCallStack, MonadIO m) => Text -> m ()gi-gio GI.Gio.Interfaces.AppInfo Removes all changes to the type associations done by appInfoSetAsDefaultForType, appInfoSetAsDefaultForExtension, appInfoAddSupportsType or appInfoRemoveSupportsType. Since: 2.20
appInfoSetAsDefaultForExtension :: (HasCallStack, MonadIO m, IsAppInfo a) => a -> [Char] -> m ()gi-gio GI.Gio.Interfaces.AppInfo Sets the application as the default handler for the given file extension.
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.