ghc-lib-parser-0.20200301: The GHC API, decoupled from GHC versions

Safe HaskellNone
LanguageHaskell2010

PrelNames

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

Defined in Unique

Methods

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

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

Show Unique Source # 
Instance details

Defined in Unique

Outputable Unique Source # 
Instance details

Defined in Unique

Uniquable Unique Source # 
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
Uniquable Int Source # 
Instance details

Defined in Unique

Methods

getUnique :: Int -> Unique Source #

Uniquable Name Source # 
Instance details

Defined in Name

Uniquable OccName Source # 
Instance details

Defined in OccName

Uniquable TyCon Source # 
Instance details

Defined in TyCon

Uniquable FastString Source # 
Instance details

Defined in Unique

Uniquable ComponentId Source # 
Instance details

Defined in Module

Uniquable InstalledUnitId Source # 
Instance details

Defined in Module

Uniquable UnitId Source # 
Instance details

Defined in Module

Uniquable ModuleName Source # 
Instance details

Defined in Module

Uniquable Module Source # 
Instance details

Defined in Module

Uniquable Unique Source # 
Instance details

Defined in Unique

Uniquable RegClass Source # 
Instance details

Defined in GHC.Platform.Reg.Class

Uniquable Reg Source # 
Instance details

Defined in GHC.Platform.Reg

Methods

getUnique :: Reg -> Unique Source #

Uniquable RealReg Source # 
Instance details

Defined in GHC.Platform.Reg

Uniquable VirtualReg Source # 
Instance details

Defined in GHC.Platform.Reg

Uniquable PackageName Source # 
Instance details

Defined in UnitInfo

Uniquable SourcePackageId Source # 
Instance details

Defined in UnitInfo

Uniquable Var Source # 
Instance details

Defined in Var

Methods

getUnique :: Var -> Unique Source #

Uniquable PatSyn Source # 
Instance details

Defined in PatSyn

Uniquable DataCon Source # 
Instance details

Defined in DataCon

Uniquable ConLike Source # 
Instance details

Defined in ConLike

Uniquable CoAxiomRule Source # 
Instance details

Defined in CoAxiom

Uniquable Class Source # 
Instance details

Defined in Class

Uniquable Label Source # 
Instance details

Defined in GHC.Cmm.Dataflow.Label

Uniquable EvBindsVar Source # 
Instance details

Defined in TcEvidence

Uniquable LocalReg Source # 
Instance details

Defined in GHC.Cmm.Expr

Uniquable (CoAxiom br) Source # 
Instance details

Defined in CoAxiom

Methods

getUnique :: CoAxiom br -> Unique Source #