ghc-8.8.3: The GHC API
Safe HaskellNone
LanguageHaskell2010

Unique

Synopsis

Main data types

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
Eq Unique # 
Instance details

Defined in Unique

Methods

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

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

Show Unique # 
Instance details

Defined in Unique

Outputable Unique # 
Instance details

Defined in Unique

Uniquable Unique # 
Instance details

Defined in Unique

class Uniquable a where Source #

Class of things that we can obtain a Unique from

Methods

getUnique :: a -> Unique Source #

Instances

Instances details
Uniquable Int # 
Instance details

Defined in Unique

Methods

getUnique :: Int -> Unique Source #

Uniquable Name # 
Instance details

Defined in Name

Uniquable OccName # 
Instance details

Defined in OccName

Uniquable TyCon # 
Instance details

Defined in TyCon

Uniquable FastString # 
Instance details

Defined in Unique

Uniquable ComponentId # 
Instance details

Defined in Module

Uniquable InstalledUnitId # 
Instance details

Defined in Module

Uniquable UnitId # 
Instance details

Defined in Module

Uniquable ModuleName # 
Instance details

Defined in Module

Uniquable Module # 
Instance details

Defined in Module

Uniquable Unique # 
Instance details

Defined in Unique

Uniquable RegClass # 
Instance details

Defined in RegClass

Uniquable Reg #

so we can put regs in UniqSets

Instance details

Defined in RegAlloc.Graph.ArchBase

Methods

getUnique :: Reg -> Unique Source #

Uniquable Reg # 
Instance details

Defined in Reg

Methods

getUnique :: Reg -> Unique Source #

Uniquable RealReg # 
Instance details

Defined in Reg

Uniquable VirtualReg # 
Instance details

Defined in Reg

Uniquable PackageName # 
Instance details

Defined in PackageConfig

Uniquable SourcePackageId # 
Instance details

Defined in PackageConfig

Uniquable Var # 
Instance details

Defined in Var

Methods

getUnique :: Var -> Unique Source #

Uniquable PatSyn # 
Instance details

Defined in PatSyn

Uniquable DataCon # 
Instance details

Defined in DataCon

Uniquable ConLike # 
Instance details

Defined in ConLike

Uniquable CoAxiomRule # 
Instance details

Defined in CoAxiom

Uniquable Class # 
Instance details

Defined in Class

Uniquable Label # 
Instance details

Defined in Hoopl.Label

Uniquable LocalReg # 
Instance details

Defined in CmmExpr

Uniquable EvBindsVar # 
Instance details

Defined in TcEvidence

Uniquable name => Uniquable (AnnTarget name) # 
Instance details

Defined in Annotations

Methods

getUnique :: AnnTarget name -> Unique Source #

Uniquable (CoAxiom br) # 
Instance details

Defined in CoAxiom

Methods

getUnique :: CoAxiom br -> Unique Source #

Constructors, destructors and operations on Uniques

isValidKnownKeyUnique :: Unique -> Bool Source #

The interface file symbol-table encoding assumes that known-key uniques fit in 30-bits; verify this.

See Note [Symbol table representation of names] in BinIface for details.

Making built-in uniques

Deriving uniques

From TyCon name uniques

From DataCon name uniques