HORIZON HASKELLDocslts/ghc-10.0.xfc4e5982026-10-11Search names, modules, packages, or :: a typeCtrl K

GHC 10.0.0.20260917 · lts/ghc-10.0.x · fc4e598 · 2026-10-11

Moduleghc-10.0.0.20260917GHC2024

GHC.Data.UnionFind

  • 2 types
  • 7 values
newtypenewtype Point s a
#

A variable which can be unified; alternately, this can be thought of as an equivalence class with a distinguished representative.

Constructors

Instances1Eq
  • Eq (Point s a)Defined in ghc-10.0.0.20260917 · GHC.Data.UnionFind
valuefresh :: a -> ST s (Point s a)
#

Create a fresh equivalence class with one element.

valuerepr :: Point s a -> ST s (Point s a)
#

Flatten any chains of links, returning a Point which points directly to the canonical representation.

valuefind :: Point s a -> ST s a
#

Return the canonical element of an equivalence class Point.

valueunion :: Point s a -> Point s a -> ST s ()
#

Unify two equivalence classes, so that they share a canonical element. Keeps the descriptor of point2.