ghc-9.2.0.20210331: The GHC API
Safe HaskellSafe-Inferred
LanguageHaskell2010

GHC.Builtin.Names

Synopsis

Documentation

data Unique Source #

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.

Instances

Instances details
Show Unique # 
Instance details

Defined in GHC.Types.Unique

Uniquable Unique # 
Instance details

Defined in GHC.Types.Unique

Outputable Unique # 
Instance details

Defined in GHC.Types.Unique

Methods

ppr :: Unique -> SDoc Source #

Eq Unique # 
Instance details

Defined in GHC.Types.Unique

Methods

(==) :: Unique -> Unique -> Bool #

(/=) :: Unique -> Unique -> Bool #

class Uniquable a where Source #

Class of things that we can obtain a Unique from

Methods

getUnique :: a -> Unique Source #

Instances

Instances details
Uniquable Label # 
Instance details

Defined in GHC.Cmm.Dataflow.Label

Uniquable LocalReg # 
Instance details

Defined in GHC.Cmm.Expr

Uniquable Reg #

so we can put regs in UniqSets

Instance details

Defined in GHC.CmmToAsm.Reg.Graph.Base

Methods

getUnique :: Reg -> Unique Source #

Uniquable Class # 
Instance details

Defined in GHC.Core.Class

Uniquable CoAxiomRule # 
Instance details

Defined in GHC.Core.Coercion.Axiom

Uniquable ConLike # 
Instance details

Defined in GHC.Core.ConLike

Uniquable DataCon # 
Instance details

Defined in GHC.Core.DataCon

Uniquable PatSyn # 
Instance details

Defined in GHC.Core.PatSyn

Uniquable CoercionHole # 
Instance details

Defined in GHC.Core.TyCo.Rep

Uniquable TyCon # 
Instance details

Defined in GHC.Core.TyCon

Uniquable FastString # 
Instance details

Defined in GHC.Types.Unique

Uniquable RealReg # 
Instance details

Defined in GHC.Platform.Reg

Uniquable Reg # 
Instance details

Defined in GHC.Platform.Reg

Methods

getUnique :: Reg -> Unique Source #

Uniquable VirtualReg # 
Instance details

Defined in GHC.Platform.Reg

Uniquable RegClass # 
Instance details

Defined in GHC.Platform.Reg.Class

Uniquable EvBindsVar # 
Instance details

Defined in GHC.Tc.Types.Evidence

Uniquable Name # 
Instance details

Defined in GHC.Types.Name

Uniquable OccName # 
Instance details

Defined in GHC.Types.Name.Occurrence

Uniquable Unique # 
Instance details

Defined in GHC.Types.Unique

Uniquable Var # 
Instance details

Defined in GHC.Types.Var

Methods

getUnique :: Var -> Unique Source #

Uniquable PackageId # 
Instance details

Defined in GHC.Unit.Info

Uniquable PackageName # 
Instance details

Defined in GHC.Unit.Info

Uniquable ModuleName # 
Instance details

Defined in GHC.Unit.Module.Name

Uniquable Module # 
Instance details

Defined in GHC.Unit.Types

Uniquable UnitId # 
Instance details

Defined in GHC.Unit.Types

Uniquable Int # 
Instance details

Defined in GHC.Types.Unique

Methods

getUnique :: Int -> Unique Source #

Uniquable (CoAxiom br) # 
Instance details

Defined in GHC.Core.Coercion.Axiom

Methods

getUnique :: CoAxiom br -> Unique Source #

Uniquable unit => Uniquable (Definite unit) # 
Instance details

Defined in GHC.Unit.Types

Methods

getUnique :: Definite unit -> Unique Source #

IsUnitId u => Uniquable (GenUnit u) # 
Instance details

Defined in GHC.Unit.Types

Uniquable unit => Uniquable (Indefinite unit) # 
Instance details

Defined in GHC.Unit.Types

Methods

getUnique :: Indefinite unit -> Unique Source #