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.
dateSetTime :: (HasCallStack, MonadIO m) => Date -> Int32 -> m ()gi-glib GI.GLib.Structs.Date Deprecated: (Since version 2.10)Use dateSetTimeT instead.
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.10dateSetTimeVal :: (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.
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.
dateTimeGetUtcOffset :: (HasCallStack, MonadIO m) => DateTime -> m Int64gi-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
getHookListIsSetup :: MonadIO m => HookList -> m Word32gi-glib GI.GLib.Structs.HookList Get the value of the “is_setup” field. When overloading is enabled, this is equivalent to
get hookList #isSetup
iOChannelSetBufferSize :: (HasCallStack, MonadIO m) => IOChannel -> CSize -> m ()gi-glib GI.GLib.Structs.IOChannel Sets the buffer size.
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.
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.
iOChannelSetEncoding :: (HasCallStack, MonadIO m) => IOChannel -> Maybe Text -> m IOStatusgi-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:
- The channel was just created, and has not been written to or read from yet.
- The channel is write-only.
- The channel is a file, and the file pointer was just repositioned by a call to iOChannelSeekPosition. (This flushes all the internal buffers.)
- The current encoding is Nothing or UTF-8.
- One of the (new API) read functions has just returned IOStatusEof (or, in the case of iOChannelReadToEnd, IOStatusNormal).
- One of the functions iOChannelReadChars or iOChannelReadUnichar has returned IOStatusAgain or IOStatusError. This may be useful in the case of ConvertErrorIllegalSequence. Returning one of these statuses from iOChannelReadLine, g_io_channel_read_line_string(), or iOChannelReadToEnd does not guarantee that the encoding can be changed.