HORIZON HASKELLDocslts/ghc-10.0.x77a86622026-10-31Search packagesCtrl K
Theme: |

GHC 10.0.0.20260917 · lts/ghc-10.0.x · 77a8662 · 2026-10-31

Moduleghc-lib-parser-9.14.1.20251220GHC2021

GHC.Builtin.Names

Synopsis
newtypenewtype Unique

Unique identifier.

The type of unique identifiers that are used in many places in GHC for fast ordering and equality tests. You should generate these with the functions from the UniqSupply module

These are sometimes also referred to as "keys" in comments in GHC.

Instances4Eq, Show, Uniquable, Outputable
  • Eq UniqueDefined in ghc-lib-parser-9.14.1.20251220 · GHC.Types.Unique
  • Show UniqueDefined in ghc-lib-parser-9.14.1.20251220 · GHC.Types.Unique
  • Uniquable UniqueDefined in ghc-lib-parser-9.14.1.20251220 · GHC.Types.Unique
  • Outputable UniqueDefined in ghc-lib-parser-9.14.1.20251220 · GHC.Types.Unique
classclass Uniquable a where

Class of things that we can obtain a Unique from

Methods

Instances33Uniquable, …