Hoogle Search

Within LTS Haskell 24.34 (ghc-9.10.3)

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

  1. sortAndGroupFstBySnd :: Ord b => [(a, b)] -> [([a], b)]

    fitspec Test.FitSpec.Utils

    No documentation available.

  2. sortAndGroupOn :: Ord b => (a -> b) -> [a] -> [[a]]

    fitspec Test.FitSpec.Utils

    No documentation available.

  3. sortGroupAndCollapse :: Ord b => (a -> b) -> (a -> c) -> (b -> [c] -> d) -> [a] -> [d]

    fitspec Test.FitSpec.Utils

    No documentation available.

  4. sortOn :: Ord b => (a -> b) -> [a] -> [a]

    fitspec Test.FitSpec.Utils

    No documentation available.

  5. sortByFL :: (a -> a -> Ordering) -> FocusList a -> FocusList a

    focuslist Data.FocusList

    Sort a FocusList. The Focus will stay with the element that has the Focus.

    >>> let Just fl = fromListFL (Focus 2) ["b", "c", "a"]
    
    >>> sortByFL compare fl
    FocusList (Focus 0) ["a","b","c"]
    
    Nothing will happen if you try to sort an empty FocusList, or a FocusList with only one element.
    emptyFL == sortByFL compare emptyFL
    
    singletonFL a == sortByFL compare (singletonFL a)
    
    The element with the Focus should be the same before and after sorting.
    getFocusItemFL (fl :: FocusList Int) == getFocusItemFL (sortByFL compare fl)
    
    Sorting a FocusList and getting the underlying Seq should be the same as getting the underlying Seq and then sorting it.
    toSeqFL (sortByFL compare (fl :: FocusList Int)) == sortBy compare (toSeqFL fl)
    
    WARNING: The computational complexity for this is very bad. It should be able to be done in O(n * log n), but the current implementation is O(n^2) (or worse), where n is the length of the FocusList. This function could be implemented the same way Data.Sequence.sortBy is implemented. However, a small change needs to be added to that function to keep track of the Focus in the FocusList and make sure it gets updated properly. If you're interested in fixing this, please send a PR.

  6. sortCardsBy :: OrderedCard c o => o -> [c] -> [c]

    general-games Game.Implement.Card

    No documentation available.

  7. sortAscending :: HasDirection mod => mod

    github GitHub.Data.Options

    No documentation available.

  8. sortByComments :: HasComments mod => mod

    github GitHub.Data.Options

    No documentation available.

  9. sortByCreated :: HasCreatedUpdated mod => mod

    github GitHub.Data.Options

    No documentation available.

  10. sortByCreatedAt :: CacheMod

    github GitHub.Data.Options

    No documentation available.

Page 42 of many | Previous | Next