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. nubSort :: Ord a => [a] -> [a]

    extra Data.List.Extra

    O(n log n). The nubSort function sorts and removes duplicate elements from a list. In particular, it keeps only the first occurrence of each element.

    nubSort "this is a test" == " aehist"
    \xs -> nubSort xs == nub (sort xs)
    

  2. nubSortBy :: (a -> a -> Ordering) -> [a] -> [a]

    extra Data.List.Extra

    A version of nubSort with a custom predicate.

    nubSortBy (compare `on` length) ["a","test","of","this"] == ["a","of","test"]
    

  3. nubSortOn :: Ord b => (a -> b) -> [a] -> [a]

    extra Data.List.Extra

    A version of nubSort which operates on a portion of the value.

    nubSortOn length ["a","test","of","this"] == ["a","of","test"]
    

  4. groupSort :: Ord k => [(k, v)] -> [(k, [v])]

    extra Extra

    A combination of group and sort.

    groupSort [(1,'t'),(3,'t'),(2,'e'),(2,'s')] == [(1,"t"),(2,"es"),(3,"t")]
    \xs -> map fst (groupSort xs) == sort (nub (map fst xs))
    \xs -> concatMap snd (groupSort xs) == map snd (sortOn fst xs)
    

  5. groupSortBy :: (a -> a -> Ordering) -> [a] -> [[a]]

    extra Extra

    A combination of group and sort, using a predicate to compare on.

    groupSortBy (compare `on` length) ["test","of","sized","item"] == [["of"],["test","item"],["sized"]]
    

  6. groupSortOn :: Ord b => (a -> b) -> [a] -> [[a]]

    extra Extra

    A combination of group and sort, using a part of the value to compare on.

    groupSortOn length ["test","of","sized","item"] == [["of"],["test","item"],["sized"]]
    

  7. nubSort :: Ord a => [a] -> [a]

    extra Extra

    O(n log n). The nubSort function sorts and removes duplicate elements from a list. In particular, it keeps only the first occurrence of each element.

    nubSort "this is a test" == " aehist"
    \xs -> nubSort xs == nub (sort xs)
    

  8. nubSortBy :: (a -> a -> Ordering) -> [a] -> [a]

    extra Extra

    A version of nubSort with a custom predicate.

    nubSortBy (compare `on` length) ["a","test","of","this"] == ["a","of","test"]
    

  9. nubSortOn :: Ord b => (a -> b) -> [a] -> [a]

    extra Extra

    A version of nubSort which operates on a portion of the value.

    nubSortOn length ["a","test","of","this"] == ["a","of","test"]
    

  10. unsorted :: Verbosity -> [FilePath] -> [ModuleName] -> IO [ModuleName]

    Cabal Distribution.Simple.PreProcess

    Just present the modules in the order given; this is the default and it is appropriate for preprocessors which do not have any sort of dependencies between modules.

Page 104 of many | Previous | Next