HORIZON HASKELLDocslts/ghc-10.0.x04404a62026-10-19Search packagesCtrl K
Theme: |

GHC 10.0.0.20260917 · lts/ghc-10.0.x · 04404a6 · 2026-10-19

Moduleghc-10.0.0.20260917GHC2024

GHC.Data.UnionFind

Synopsis
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.

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.