Hoogle Search

Within LTS Haskell 24.32 (ghc-9.10.3)

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

  1. hClearFromCursorToScreenBeginning :: Handle -> IO ()

    ansi-terminal System.Console.ANSI

    No documentation available.

  2. hClearFromCursorToScreenEnd :: Handle -> IO ()

    ansi-terminal System.Console.ANSI

    No documentation available.

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

    extra Data.List.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)
    

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

    extra Data.List.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"]]
    

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

    extra Data.List.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"]]
    

  6. 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)
    

  7. 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"]
    

  8. 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"]
    

  9. 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)
    

  10. 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"]]
    

Page 95 of many | Previous | Next