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.
quicksort :: (Manifest r e, Ord e) => Vector r e -> Vector r emassiv Data.Massiv.Array This is an implementation of Quicksort, which is an efficient, but unstable sort. This implementation uses Median-of-three for pivot choosing, as such it performs very well not only for random values, but also for common edge cases like already sorted, reversed sorted and arrays with many duplicate elements. It will also respect the computation strategy and will result in a nice speed up for systems with multiple CPUs.
quicksortBy :: Manifest r e => (e -> e -> Ordering) -> Vector r e -> Vector r emassiv Data.Massiv.Array Same as quicksortBy, but instead of Ord constraint expects a custom Ordering.
-
massiv Data.Massiv.Array Same as quicksortBy, but instead of Ord constraint expects a custom Ordering.
-
massiv Data.Massiv.Array.Mutable.Algorithms Same as quicksortM_, but instead of Ord constraint expects a custom Ordering.
quicksortM_ :: (Ord e, Manifest r e, MonadPrimBase s m) => Scheduler s () -> MVector s r e -> m ()massiv Data.Massiv.Array.Mutable.Algorithms Manifest version of quicksort
toposortKindVarsOfTvbs :: [DTyVarBndr flag] -> [DTyVarBndrUnit]th-desugar Language.Haskell.TH.Desugar Take a telescope of DTyVarBndrs, find the free variables in their kinds, and sort them in reverse topological order to ensure that they are well scoped. Because the argument list is assumed to be telescoping, kind variables that are bound earlier in the list are not returned. For example, this:
toposortKindVarsOfTvbs [a :: k, b :: Proxy a]
Will return [k], not [k, a], since a is bound earlier by a :: k.toposortTyVarsOf :: [DType] -> [DTyVarBndrUnit]th-desugar Language.Haskell.TH.Desugar Take a list of DTypes, find their free variables, and sort them in reverse topological order to ensure that they are well scoped. In other words, the free variables are ordered such that:
- Whenever an explicit kind signature of the form (A :: K) is encountered, the free variables of K will always appear to the left of the free variables of A in the returned result.
- The constraint in (1) notwithstanding, free variables will appear in left-to-right order of their original appearance.
preprocessorTests :: [([Char], IO ())]HTF Test.Framework.Preprocessor No documentation available.
-
HTF Test.Framework.TestTypes Type for distinguishing different sorts of tests.
ft_sort :: GenFlatTest a -> TestSortHTF Test.Framework.TestTypes The sort of the test.