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.
getFilenameCharsets :: (HasCallStack, MonadIO m) => m (Bool, [Text])gi-glib GI.GLib.Functions Determines the preferred character sets used for filenames. The first character set from the charsets is the filename encoding, the subsequent character sets are used when trying to generate a displayable representation of a filename, see filenameDisplayName. On Unix, the character sets are determined by consulting the environment variables G_FILENAME_ENCODING and G_BROKEN_FILENAMES. On Windows, the character set used in the GLib API is always UTF-8 and said environment variables have no effect. G_FILENAME_ENCODING may be set to a comma-separated list of character set names. The special token "@locale" is taken to mean the character set for the [current locale][setlocale]. If G_FILENAME_ENCODING is not set, but G_BROKEN_FILENAMES is, the character set of the current locale is taken as the filename encoding. If neither environment variable is set, UTF-8 is taken as the filename encoding, but the character set of the current locale is also put in the list of encodings. The returned charsets belong to GLib and must not be freed. Note that on Unix, regardless of the locale character set or G_FILENAME_ENCODING value, the actual file names present on a system might be in any random encoding or just gibberish. Since: 2.6
logSetAlwaysFatal :: (HasCallStack, MonadIO m) => [LogLevelFlags] -> m [LogLevelFlags]gi-glib GI.GLib.Functions Sets the message levels which are always fatal, in any log domain. When a message with any of these levels is logged the program terminates. You can only set the levels defined by GLib to be fatal. [flagsgLib.LogLevelFlags.LEVEL_ERROR] is always fatal. You can also make some message levels fatal at runtime by setting the G_DEBUG environment variable (see Running GLib Applications). Libraries should not call this function, as it affects all messages logged by a process, including those from other libraries. Structured log messages (using GLib.log_structured and logStructuredArray) are fatal only if the default log writer is used; otherwise it is up to the writer function to determine which log messages are fatal. See Using Structured Logging.
logSetDebugEnabled :: (HasCallStack, MonadIO m) => Bool -> m ()gi-glib GI.GLib.Functions Enable or disable debug output from the GLib logging system for all domains. This value interacts disjunctively with G_MESSAGES_DEBUG and logWriterDefaultSetDebugDomains — if any of them would allow a debug message to be outputted, it will be. Note that this should not be used from within library code to enable debug output — it is intended for external use. Since: 2.72
logSetFatalMask :: (HasCallStack, MonadIO m) => Text -> [LogLevelFlags] -> m [LogLevelFlags]gi-glib GI.GLib.Functions Sets the log levels which are fatal in the given domain.
- flagsgLib.LogLevelFlags.LEVEL_ERROR is always fatal.
logSetHandler :: (HasCallStack, MonadIO m) => Maybe Text -> [LogLevelFlags] -> LogFunc -> m Word32gi-glib GI.GLib.Functions Like logSetHandler, but takes a destroy notify for the userData. This has no effect if structured logging is enabled; see Using Structured Logging. Since: 2.46
logSetWriterFunc :: (HasCallStack, MonadIO m) => Maybe LogWriterFunc -> m ()gi-glib GI.GLib.Functions Set a writer function which will be called to format and write out each log message. Each program should set a writer function, or the default writer (logWriterDefault) will be used. Libraries must not call this function — only programs are allowed to install a writer function, as there must be a single, central point where log messages are formatted and outputted. There can only be one writer function. It is an error to set more than one. Since: 2.50
logWriterDefaultSetDebugDomains :: (HasCallStack, MonadIO m) => Maybe Text -> m ()gi-glib GI.GLib.Functions Reset the list of domains to be logged, that might be initially set by the G_MESSAGES_DEBUG environment variable. This function is thread-safe. Since: 2.80
logWriterDefaultSetUseStderr :: (HasCallStack, MonadIO m) => Bool -> m ()gi-glib GI.GLib.Functions Configure whether the built-in log functions will output all log messages to stderr. The built-in log functions are logDefaultHandler for the old-style API, and both logWriterDefault and logWriterStandardStreams for the structured API. By default, log messages of levels [flagsgLib.LogLevelFlags.LEVEL_INFO] and [flagsgLib.LogLevelFlags.LEVEL_DEBUG] are sent to stdout, and other log messages are sent to stderr. This is problematic for applications that intend to reserve stdout for structured output such as JSON or XML. This function sets global state. It is not thread-aware, and should be called at the very start of a program, before creating any other threads or creating objects that could create worker threads of their own. Since: 2.68
memSetVtable :: (HasCallStack, MonadIO m) => MemVTable -> m ()gi-glib GI.GLib.Functions Deprecated: (Since version 2.46)This function now does nothing. Use other memoryprofiling tools instead
-
gi-glib GI.GLib.Functions This is equivalent to pointerBitUnlock and atomically setting the pointer value. Note that the lock bit will be cleared from the pointer. If the unlocked pointer that was set is not identical to ptr, an assertion fails. In other words, ptr must have lockBit unset. This also means, you usually can only use this on the lowest bits. Since: 2.80