Hoogle Search
Within LTS Haskell 24.18 (ghc-9.10.3)
Note that Stackage only displays results for the latest LTS and Nightly snapshot. Learn more.
-
gi-glib GI.GLib.Structs.Sequence Returns an iterator pointing to the position where data would be inserted according to cmpFunc and cmpData. cmpFunc is called with two items of the seq, and cmpData. It should return 0 if the items are equal, a negative value if the first item comes before the second, and a positive value if the second item comes before the first. If you are simply searching for an existing element of the sequence, consider using sequenceLookup. This function will fail if the data contained in the sequence is unsorted. Since: 2.14
-
gi-glib GI.GLib.Structs.Sequence Like sequenceSearch, but uses a SequenceIterCompareFunc instead of a CompareDataFunc as the compare function. iterCmp is called with two iterators pointing into seq. It should return 0 if the iterators are equal, a negative value if the first iterator comes before the second, and a positive value if the second iterator comes before the first. If you are simply searching for an existing element of the sequence, consider using sequenceLookupIter. This function will fail if the data contained in the sequence is unsorted. Since: 2.14
sequenceSet :: (HasCallStack, MonadIO m) => SequenceIter -> Ptr () -> m ()gi-glib GI.GLib.Structs.Sequence Changes the data for the item pointed to by iter to be data. If the sequence has a data destroy function associated with it, that function is called on the existing data that iter pointed to. Since: 2.14
sequenceSort :: (HasCallStack, MonadIO m) => Sequence -> CompareDataFunc -> m ()gi-glib GI.GLib.Structs.Sequence Sorts seq using cmpFunc. cmpFunc is passed two items of seq and should return 0 if they are equal, a negative value if the first comes before the second, and a positive value if the second comes before the first. Since: 2.14
sequenceSortChanged :: (HasCallStack, MonadIO m) => SequenceIter -> CompareDataFunc -> m ()gi-glib GI.GLib.Structs.Sequence Moves the data pointed to by iter to a new position as indicated by cmpFunc. This function should be called for items in a sequence already sorted according to cmpFunc whenever some aspect of an item changes so that cmpFunc may return different values for that item. cmpFunc is called with two items of the seq, and cmpData. It should return 0 if the items are equal, a negative value if the first item comes before the second, and a positive value if the second item comes before the first. Since: 2.14
-
gi-glib GI.GLib.Structs.Sequence Like sequenceSortChanged, but uses a SequenceIterCompareFunc instead of a CompareDataFunc as the compare function. iterCmp is called with two iterators pointing into the Sequence that iter points into. It should return 0 if the iterators are equal, a negative value if the first iterator comes before the second, and a positive value if the second iterator comes before the first. Since: 2.14
sequenceSortIter :: (HasCallStack, MonadIO m) => Sequence -> SequenceIterCompareFunc -> m ()gi-glib GI.GLib.Structs.Sequence Like sequenceSort, but uses a SequenceIterCompareFunc instead of a CompareDataFunc as the compare function cmpFunc is called with two iterators pointing into seq. It should return 0 if the iterators are equal, a negative value if the first iterator comes before the second, and a positive value if the second iterator comes before the first. Since: 2.14
sequenceSwap :: (HasCallStack, MonadIO m) => SequenceIter -> SequenceIter -> m ()gi-glib GI.GLib.Structs.Sequence Swaps the items pointed to by a and b. It is allowed for a and b to point into difference sequences. Since: 2.14
sequenceIterCompare :: (HasCallStack, MonadIO m) => SequenceIter -> SequenceIter -> m Int32gi-glib GI.GLib.Structs.SequenceIter Returns a negative number if a comes before b, 0 if they are equal, and a positive number if a comes after b. The a and b iterators must point into the same sequence. Since: 2.14
sequenceIterGetPosition :: (HasCallStack, MonadIO m) => SequenceIter -> m Int32gi-glib GI.GLib.Structs.SequenceIter Returns the position of iter Since: 2.14