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.
hClearFromCursorToScreenBeginning :: Handle -> IO ()ansi-terminal System.Console.ANSI No documentation available.
hClearFromCursorToScreenEnd :: Handle -> IO ()ansi-terminal System.Console.ANSI No documentation available.
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)
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"]]
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"]]
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)
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"]
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"]
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)
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"]]