Hoogle Search

Within LTS Haskell 24.65 (ghc-9.10.3)

Note that Stackage only displays results for the latest LTS and Nightly snapshot. Learn more.

  1. setScannerConfigScanIdentifier1char :: MonadIO m => ScannerConfig -> Word32 -> m ()

    gi-glib GI.GLib.Structs.ScannerConfig

    Set the value of the “scan_identifier_1char” field. When overloading is enabled, this is equivalent to

    set scannerConfig [ #scanIdentifier1char := value ]
    

  2. setScannerConfigScanIdentifierNULL :: MonadIO m => ScannerConfig -> Word32 -> m ()

    gi-glib GI.GLib.Structs.ScannerConfig

    Set the value of the “scan_identifier_NULL” field. When overloading is enabled, this is equivalent to

    set scannerConfig [ #scanIdentifierNULL := value ]
    

  3. sequenceRangeGetMidpoint :: (HasCallStack, MonadIO m) => SequenceIter -> SequenceIter -> m SequenceIter

    gi-glib GI.GLib.Structs.Sequence

    Finds an iterator somewhere in the range (begin, end). This iterator will be close to the middle of the range, but is not guaranteed to be exactly in the middle. The begin and end iterators must both point to the same sequence and begin must come before or be equal to end in the sequence. Since: 2.14

  4. sourceGetId :: (HasCallStack, MonadIO m) => Source -> m Word32

    gi-glib GI.GLib.Structs.Source

    Returns the numeric ID for a particular source. The ID of a source is a positive integer which is unique within a particular main loop context. The reverse mapping from ID to source is done by mainContextFindSourceById. You can only call this function while the source is associated to a MainContext instance; calling this function before sourceAttach or after sourceDestroy yields undefined behavior. The ID returned is unique within the MainContext instance passed to sourceAttach.

  5. sourceSetNameById :: (HasCallStack, MonadIO m) => Word32 -> Text -> m ()

    gi-glib GI.GLib.Structs.Source

    Sets the name of a source using its ID. This is a convenience utility to set source names from the return value of g_idle_add(), g_timeout_add(), etc. It is a programmer error to attempt to set the name of a non-existent source. More specifically: source IDs can be reissued after a source has been destroyed and therefore it is never valid to use this function with a source ID which may have already been removed. An example is when scheduling an idle to run in another thread with g_idle_add(): the idle may already have run and been removed by the time this function is called on its (now invalid) source ID. This source ID may have been reissued, leading to the operation being performed against the wrong source. Since: 2.26

  6. stringAsciiDown :: (HasCallStack, MonadIO m) => String -> m String

    gi-glib GI.GLib.Structs.String

    Converts all uppercase ASCII letters to lowercase ASCII letters.

  7. threadPoolGetMaxIdleTime :: (HasCallStack, MonadIO m) => m Word32

    gi-glib GI.GLib.Structs.ThreadPool

    This function will return the maximum interval that a thread will wait in the thread pool for new tasks before being stopped. If this function returns 0, threads waiting in the thread pool for new work are not stopped. Since: 2.10

  8. threadPoolSetMaxIdleTime :: (HasCallStack, MonadIO m) => Word32 -> m ()

    gi-glib GI.GLib.Structs.ThreadPool

    This function will set the maximum interval that a thread waiting in the pool for new tasks can be idle for before being stopped. This function is similar to calling threadPoolStopUnusedThreads on a regular timeout, except this is done on a per thread basis. By setting interval to 0, idle threads will not be stopped. The default value is 15000 (15 seconds). Since: 2.10

  9. timeZoneGetIdentifier :: (HasCallStack, MonadIO m) => TimeZone -> m Text

    gi-glib GI.GLib.Structs.TimeZone

    Get the identifier of this TimeZone, as passed to timeZoneNew. If the identifier passed at construction time was not recognised, UTC will be returned. If it was Nothing, the identifier of the local timezone at construction time will be returned. The identifier will be returned in the same format as provided at construction time: if provided as a time offset, that will be returned by this function. Since: 2.58

  10. timeZoneNewIdentifier :: (HasCallStack, MonadIO m) => Maybe Text -> m (Maybe TimeZone)

    gi-glib GI.GLib.Structs.TimeZone

    Creates a TimeZone corresponding to identifier. If identifier cannot be parsed or loaded, Nothing is returned. identifier can either be an RFC3339/ISO 8601 time offset or something that would pass as a valid value for the TZ environment variable (including Nothing). In Windows, identifier can also be the unlocalized name of a time zone for standard time, for example "Pacific Standard Time". Valid RFC3339 time offsets are "Z" (for UTC) or "±hh:mm". ISO 8601 additionally specifies "±hhmm" and "±hh". Offsets are time values to be added to Coordinated Universal Time (UTC) to get the local time. In UNIX, the TZ environment variable typically corresponds to the name of a file in the zoneinfo database, an absolute path to a file somewhere else, or a string in "std offset [dst [offset],start[/time],end[/time]]" (POSIX) format. There are no spaces in the specification. The name of standard and daylight savings time zone must be three or more alphabetic characters. Offsets are time values to be added to local time to get Coordinated Universal Time (UTC) and should be "[±]hh[[:]mm[:ss]]". Dates are either "Jn" (Julian day with n between 1 and 365, leap years not counted), "n" (zero-based Julian day with n between 0 and 365) or "Mm.w.d" (day d (0 <= d <= 6) of week w (1 <= w <= 5) of month m (1 <= m <= 12), day 0 is a Sunday). Times are in local wall clock time, the default is 02:00:00. In Windows, the "tzn[+|–]hh[:mm[:ss]][dzn]" format is used, but also accepts POSIX format. The Windows format uses US rules for all time zones; daylight savings time is 60 minutes behind the standard time with date and time of change taken from Pacific Standard Time. Offsets are time values to be added to the local time to get Coordinated Universal Time (UTC). timeZoneNewLocal calls this function with the value of the TZ environment variable. This function itself is independent of the value of TZ, but if identifier is Nothing then /etc/localtime will be consulted to discover the correct time zone on UNIX and the registry will be consulted or GetTimeZoneInformation() will be used to get the local time zone on Windows. If intervals are not available, only time zone rules from TZ environment variable or other means, then they will be computed from year 1900 to 2037. If the maximum year for the rules is available and it is greater than 2037, then it will followed instead. See RFC3339 §5.6 for a precise definition of valid RFC3339 time offsets (the time-offset expansion) and ISO 8601 for the full list of valid time offsets. See The GNU C Library manual for an explanation of the possible values of the TZ environment variable. See Microsoft Time Zone Index Values for the list of time zones on Windows. You should release the return value by calling timeZoneUnref when you are done with it. Since: 2.68

Page 647 of many | Previous | Next