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.

  1. dateSetTime :: (HasCallStack, MonadIO m) => Date -> Int32 -> m ()

    gi-glib GI.GLib.Structs.Date

    Deprecated: (Since version 2.10)Use dateSetTimeT instead.

  2. dateSetTimeT :: (HasCallStack, MonadIO m) => Date -> CTime -> m ()

    gi-glib GI.GLib.Structs.Date

    Sets the value of a date to the date corresponding to a time specified as a time_t. The time to date conversion is done using the user's current timezone. To set the value of a date to the current day, you could write:

    C code

    time_t now = time (NULL);
    if (now == (time_t) -1)
    // handle the error
    g_date_set_time_t (date, now);
    
    Since: 2.10

  3. dateSetTimeVal :: (HasCallStack, MonadIO m) => Date -> TimeVal -> m ()

    gi-glib GI.GLib.Structs.Date

    Deprecated: (Since version 2.62)TimeVal is not year-2038-safe. Use dateSetTimeTinstead.

  4. dateSetYear :: (HasCallStack, MonadIO m) => Date -> Word16 -> m ()

    gi-glib GI.GLib.Structs.Date

    Sets the year for a Date. If the resulting day-month-year triplet is invalid, the date will be invalid.

  5. dateTimeGetUtcOffset :: (HasCallStack, MonadIO m) => DateTime -> m Int64

    gi-glib GI.GLib.Structs.DateTime

    Determines the offset to UTC in effect at the time and in the time zone of datetime. The offset is the number of microseconds that you add to UTC time to arrive at local time for the time zone (ie: negative numbers for time zones west of GMT, positive numbers for east). If datetime represents UTC time, then the offset is always zero. Since: 2.26

  6. getHookListIsSetup :: MonadIO m => HookList -> m Word32

    gi-glib GI.GLib.Structs.HookList

    Get the value of the “is_setup” field. When overloading is enabled, this is equivalent to

    get hookList #isSetup
    

  7. iOChannelSetBufferSize :: (HasCallStack, MonadIO m) => IOChannel -> CSize -> m ()

    gi-glib GI.GLib.Structs.IOChannel

    Sets the buffer size.

  8. iOChannelSetBuffered :: (HasCallStack, MonadIO m) => IOChannel -> Bool -> m ()

    gi-glib GI.GLib.Structs.IOChannel

    The buffering state can only be set if the channel's encoding is Nothing. For any other encoding, the channel must be buffered. A buffered channel can only be set unbuffered if the channel's internal buffers have been flushed. Newly created channels or channels which have returned IOStatusEof not require such a flush. For write-only channels, a call to g_io_channel_flush () is sufficient. For all other channels, the buffers may be flushed by a call to g_io_channel_seek_position (). This includes the possibility of seeking with seek type SeekTypeCur and an offset of zero. Note that this means that socket-based channels cannot be set unbuffered once they have had data read from them. On unbuffered channels, it is safe to mix read and write calls from the new and old APIs, if this is necessary for maintaining old code. The default state of the channel is buffered.

  9. iOChannelSetCloseOnUnref :: (HasCallStack, MonadIO m) => IOChannel -> Bool -> m ()

    gi-glib GI.GLib.Structs.IOChannel

    Whether to close the channel on the final unref of the IOChannel data structure. The default value of this is True for channels created by g_io_channel_new_file (), and False for all other channels. Setting this flag to True for a channel you have already closed can cause problems when the final reference to the IOChannel is dropped.

  10. iOChannelSetEncoding :: (HasCallStack, MonadIO m) => IOChannel -> Maybe Text -> m IOStatus

    gi-glib GI.GLib.Structs.IOChannel

    Sets the encoding for the input/output of the channel. The internal encoding is always UTF-8. The default encoding for the external file is UTF-8. The encoding Nothing is safe to use with binary data. The encoding can only be set if one of the following conditions is true:

    Channels which do not meet one of the above conditions cannot call iOChannelSeekPosition with an offset of SeekTypeCur, and, if they are "seekable", cannot call iOChannelWriteChars after calling one of the API "read" functions.

Page 1186 of many | Previous | Next