HORIZON HASKELLDocslts/ghc-10.0.x8fef28d2026-11-02Search packagesCtrl K
Theme: |

GHC 10.0.0.20260917 · lts/ghc-10.0.x · 8fef28d · 2026-11-02

Moduleghc-internal-10.0.0Haskell2010

GHC.Internal.Data.Unique

An abstract interface to a unique symbol generator.

Contents
  1. Unique objects
Synopsis

Unique objects

newtypenewtype Unique

An abstract unique object. Objects of type Unique may be compared for equality and ordering and hashed into Int.

Example1 expression
:{do x <- newUnique   print (x == x)   y <- newUnique   print (x == y):}TrueFalse
Instances2Eq, Ord
  • Eq UniqueDefined in ghc-internal-10.0.0 · GHC.Internal.Data.Unique
  • Ord UniqueDefined in ghc-internal-10.0.0 · GHC.Internal.Data.Unique