Hoogle Search
Within LTS Haskell 24.46 (ghc-9.10.3)
Note that Stackage only displays results for the latest LTS and Nightly snapshot. Learn more.
dateTimeGetWeekNumberingYear :: (HasCallStack, MonadIO m) => DateTime -> m Int32gi-glib GI.GLib.Structs.DateTime Returns the ISO 8601 week-numbering year in which the week containing datetime falls. This function, taken together with dateTimeGetWeekOfYear and dateTimeGetDayOfWeek can be used to determine the full ISO week date on which datetime falls. This is usually equal to the normal Gregorian year (as returned by dateTimeGetYear), except as detailed below: For Thursday, the week-numbering year is always equal to the usual calendar year. For other days, the number is such that every day within a complete week (Monday to Sunday) is contained within the same week-numbering year. For Monday, Tuesday and Wednesday occurring near the end of the year, this may mean that the week-numbering year is one greater than the calendar year (so that these days have the same week-numbering year as the Thursday occurring early in the next year). For Friday, Saturday and Sunday occurring near the start of the year, this may mean that the week-numbering year is one less than the calendar year (so that these days have the same week-numbering year as the Thursday occurring late in the previous year). An equivalent description is that the week-numbering year is equal to the calendar year containing the majority of the days in the current week (Monday to Sunday). Note that January 1 0001 in the proleptic Gregorian calendar is a Monday, so this function never returns 0. Since: 2.26
regexGetStringNumber :: (HasCallStack, MonadIO m) => Regex -> Text -> m Int32gi-glib GI.GLib.Structs.Regex Retrieves the number of the subexpression named name. Since: 2.14
getScannerConfigNumbers2Int :: MonadIO m => ScannerConfig -> m Word32gi-glib GI.GLib.Structs.ScannerConfig Get the value of the “numbers_2_int” field. When overloading is enabled, this is equivalent to
get scannerConfig #numbers2Int
setScannerConfigNumbers2Int :: MonadIO m => ScannerConfig -> Word32 -> m ()gi-glib GI.GLib.Structs.ScannerConfig Set the value of the “numbers_2_int” field. When overloading is enabled, this is equivalent to
set scannerConfig [ #numbers2Int := value ]
getTestLogMsgNNums :: MonadIO m => TestLogMsg -> m Word32gi-glib GI.GLib.Structs.TestLogMsg Get the value of the “n_nums” field. When overloading is enabled, this is equivalent to
get testLogMsg #nNums
setTestLogMsgNNums :: MonadIO m => TestLogMsg -> Word32 -> m ()gi-glib GI.GLib.Structs.TestLogMsg Set the value of the “n_nums” field. When overloading is enabled, this is equivalent to
set testLogMsg [ #nNums := value ]
threadPoolGetNumThreads :: (HasCallStack, MonadIO m) => ThreadPool -> m Word32gi-glib GI.GLib.Structs.ThreadPool Returns the number of threads currently running in pool.
threadPoolGetNumUnusedThreads :: (HasCallStack, MonadIO m) => m Word32gi-glib GI.GLib.Structs.ThreadPool Returns the number of currently unused threads.
enumCompleteTypeInfo :: (HasCallStack, MonadIO m) => GType -> EnumValue -> m TypeInfogi-gobject GI.GObject.Functions This function is meant to be called from the complete_type_info function of a TypePlugin implementation, as in the following example:
C code
static void my_enum_complete_type_info (GTypePlugin *plugin, GType g_type, GTypeInfo *info, GTypeValueTable *value_table) { static const GEnumValue values[] = { { MY_ENUM_FOO, "MY_ENUM_FOO", "foo" }, { MY_ENUM_BAR, "MY_ENUM_BAR", "bar" }, { 0, NULL, NULL } }; g_enum_complete_type_info (type, info, values); }enumGetValue :: (HasCallStack, MonadIO m) => EnumClass -> Int32 -> m (Maybe EnumValue)gi-gobject GI.GObject.Functions Returns the EnumValue for a value.