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.
randomSetSeed :: (HasCallStack, MonadIO m) => Word32 -> m ()gi-glib GI.GLib.Functions Sets the seed for the global random number generator, which is used by the g_random_* functions, to seed.
sliceFreeChainWithOffset :: (HasCallStack, MonadIO m) => CSize -> Ptr () -> CSize -> m ()gi-glib GI.GLib.Functions Frees a linked list of memory blocks of structure type type. The memory blocks must be equal-sized, allocated via sliceAlloc or sliceAlloc0 and linked together by a next pointer (similar to SList). The offset of the next field in each block is passed as third argument. Note that the exact release behaviour can be changed with the [G_DEBUG=gc-friendly][G_DEBUG] environment variable. If memChain is Nothing, this function does nothing. Since GLib 2.76 this always uses the system free_sized() implementation internally. Since: 2.10
sliceSetConfig :: (HasCallStack, MonadIO m) => SliceConfig -> Int64 -> m ()gi-glib GI.GLib.Functions No description available in the introspection data.
strsplitSet :: (HasCallStack, MonadIO m) => Text -> Text -> Int32 -> m [Text]gi-glib GI.GLib.Functions Splits string into a number of tokens not containing any of the characters in delimiters. A token is the (possibly empty) longest string that does not contain any of the characters in delimiters. If maxTokens is reached, the remainder is appended to the last token. For example, the result of g_strsplit_set ("abc:def/ghi", ":/", -1) is an array containing the three strings "abc", "def", and "ghi". The result of g_strsplit_set (":def/ghi:", ":/", -1) is an array containing the four strings "", "def", "ghi", and "". As a special case, the result of splitting the empty string "" is an empty array, not an array containing a single string. The reason for this special case is that being able to represent an empty array is typically more useful than consistent handling of empty elements. If you do need to represent empty elements, you'll need to check for the empty string before calling g_strsplit_set(). Note that this function works on bytes not characters, so it can't be used to delimit UTF-8 strings for anything but ASCII characters. Since: 2.4
testSetNonfatalAssertions :: (HasCallStack, MonadIO m) => m ()gi-glib GI.GLib.Functions Changes the behaviour of the various g_assert_*() macros, g_test_assert_expected_messages() and the various g_test_trap_assert_*() macros to not abort to program, but instead call testFail and continue. (This also changes the behavior of testFail so that it will not cause the test program to abort after completing the failed test.) Note that the g_assert_not_reached() and g_assert() macros are not affected by this. This function can only be called after g_test_init(). Since: 2.38
unixSetFdNonblocking :: (HasCallStack, MonadIO m) => Int32 -> Bool -> m ()gi-glib GI.GLib.Functions Control the non-blocking state of the given file descriptor, according to nonblock. On most systems this uses O_NONBLOCK, but on some older ones may use O_NDELAY. Since: 2.30
unsetenv :: (HasCallStack, MonadIO m) => [Char] -> m ()gi-glib GI.GLib.Functions Removes an environment variable from the environment. Note that on some systems, when variables are overwritten, the memory used for the previous variables and its value isn't reclaimed. You should be mindful of the fact that environment variable handling in UNIX is not thread-safe, and your program may crash if one thread calls unsetenv while another thread is calling getenv(). (And note that many functions, such as gettext(), call getenv() internally.) This function is only safe to use at the very start of your program, before creating any other threads (or creating objects that create worker threads of their own). If you need to set up the environment for a child process, you can use getEnviron to get an environment array, modify that with environSetenv and environUnsetenv, and then pass that array directly to execvpe(), spawnAsync, or the like. Since: 2.4
utf8OffsetToPointer :: (HasCallStack, MonadIO m) => Text -> CLong -> m Textgi-glib GI.GLib.Functions Converts from an integer character offset to a pointer to a position within the string. Since 2.10, this function allows to pass a negative offset to step backwards. It is usually worth stepping backwards from the end instead of forwards if offset is in the last fourth of the string, since moving forward is about 3 times faster than moving backward. Note that this function doesn't abort when reaching the end of str. Therefore you should be sure that offset is within string boundaries before calling that function. Call utf8Strlen when unsure. This limitation exists as this function is called frequently during text rendering and therefore has to be as fast as possible.
utf8PointerToOffset :: (HasCallStack, MonadIO m) => Text -> Text -> m CLonggi-glib GI.GLib.Functions Converts from a pointer to position within a string to an integer character offset. Since 2.10, this function allows pos to be before str, and returns a negative offset in this case.
bookmarkFileSetAdded :: (HasCallStack, MonadIO m) => BookmarkFile -> Text -> CTime -> m ()gi-glib GI.GLib.Structs.BookmarkFile Deprecated: (Since version 2.66)Use bookmarkFileSetAddedDateTime instead, astime_t is deprecated due to the year 2038 problem.