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. data TypeLitSort

    base Type.Reflection.Unsafe

    No documentation available.

  2. data TypeLitSort

    base GHC.Base

    No documentation available.

  3. c_sort :: Ptr Word8 -> CSize -> IO ()

    bytestring Data.ByteString.Internal

    No documentation available.

  4. reverseTopSort :: Graph -> [Vertex]

    containers Data.Graph

    Reverse ordering of topSort. See note in topSort.

  5. topSort :: Graph -> [Vertex]

    containers Data.Graph

    A topological sort of the graph. The order is partially specified by the condition that a vertex i precedes j whenever j is reachable from i but not vice versa. Note: A topological sort exists only when there are no cycles in the graph. If the graph has cycles, the output of this function will not be a topological sort. In such a case consider using scc.

  6. unstableSort :: Ord a => Seq a -> Seq a

    containers Data.Sequence

    unstableSort sorts the specified Seq by the natural ordering of its elements, but the sort is not stable. This algorithm is frequently faster and uses less memory than sort.

  7. unstableSortBy :: (a -> a -> Ordering) -> Seq a -> Seq a

    containers Data.Sequence

    A generalization of unstableSort, unstableSortBy takes an arbitrary comparator and sorts the specified sequence. The sort is not stable. This algorithm is frequently faster and uses less memory than sortBy.

  8. unstableSortOn :: Ord b => (a -> b) -> Seq a -> Seq a

    containers Data.Sequence

    unstableSortOn sorts the specified Seq by comparing the results of a key function applied to each element. unstableSortOn f is equivalent to unstableSortBy (compare `on` f), but has the performance advantage of only evaluating f once for each element in the input list. This is called the decorate-sort-undecorate paradigm, or Schwartzian transform. An example of using unstableSortOn might be to sort a Seq of strings according to their length:

    unstableSortOn length (fromList ["alligator", "monkey", "zebra"]) == fromList ["zebra", "monkey", "alligator"]
    
    If, instead, unstableSortBy had been used, length would be evaluated on every comparison, giving <math> evaluations, rather than <math>. If f is very cheap (for example a record selector, or fst), unstableSortBy (compare `on` f) will be faster than unstableSortOn f.

  9. unstableSort :: Ord a => Seq a -> Seq a

    containers Data.Sequence.Internal.Sorting

    unstableSort sorts the specified Seq by the natural ordering of its elements, but the sort is not stable. This algorithm is frequently faster and uses less memory than sort.

  10. unstableSortBy :: (a -> a -> Ordering) -> Seq a -> Seq a

    containers Data.Sequence.Internal.Sorting

    A generalization of unstableSort, unstableSortBy takes an arbitrary comparator and sorts the specified sequence. The sort is not stable. This algorithm is frequently faster and uses less memory than sortBy.

Page 101 of many | Previous | Next