Hoogle Search

Within Stackage Nightly 2025-10-12 (ghc-9.12.2)

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

  1. data DeltaSet a

    delta-types Data.Delta.Set

    Delta type for a Set where collections of elements are inserted or deleted.

  2. data DeltaSet1 a

    delta-types Data.Delta.Set

    Delta type for Set where a single element is deleted or added.

  3. deltaSetFromList :: Ord a => [DeltaSet1 a] -> DeltaSet a

    delta-types Data.Delta.Set

    Collect insertions or deletions of elements into a DeltaSet. To save space, combinations of Insert and Delete for the same element are simplified when possible. These simplifications always preserve the property

    apply (deltaSetFromList ds) = apply ds
    

  4. diffSet :: Ord a => Set a -> Set a -> DeltaSet a

    delta-types Data.Delta.Set

    The smallest delta that changes the second argument to the first argument.

    new = apply (diffSet new old) old
    
    diffSet (Set.fromList "ac") (Set.fromList "ab") = deltaSetFromList [Insert 'c', Delete 'b']
    

  5. listFromDeltaSet :: DeltaSet a -> [DeltaSet1 a]

    delta-types Data.Delta.Set

    Flatten a DeltaSet to a list of DeltaSet1. In the result list, the set of a appearing as Insert a is disjoint from the set of a appearing as Delete a.

  6. adjacencySets :: DiGraph a -> HashMap a (HashSet a)

    digraph Data.DiGraph

    The adjacency sets of a graph.

  7. type AdjacencySets = HashMap Int HashSet Int

    digraph Data.DiGraph.FloydWarshall

    Adjacency set representation of a directed graph.

  8. fromAdjacencySets :: AdjacencySets -> DenseAdjMatrix

    digraph Data.DiGraph.FloydWarshall

    Assumes that the input is an directed graph and that the vertex set is a prefix of the natural numbers.

  9. toAdjacencySets :: DenseAdjMatrix -> AdjacencySets

    digraph Data.DiGraph.FloydWarshall

    Converts an adjacency matrix into a graph in adjacnency set representation.

  10. sortingSet :: Foldable f => Sort k -> Sort (f k)

    discrimination Data.Discrimination

    Construct a stable ordered discriminator that sorts a list as sets of elements from another stable ordered discriminator. The resulting discriminator only cares about the set of keys, and is sorted as if we'd sorted each key in turn before comparing.

Page 184 of many | Previous | Next