ghc-8.0.2: The GHC API

Safe HaskellNone
LanguageHaskell2010

PrelNames

Synopsis

Documentation

data Unique Source #

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

class Uniquable a where Source #

Class of things that we can obtain a Unique from

Minimal complete definition

getUnique

Methods

getUnique :: a -> Unique Source #

Instances

Uniquable Int # 

Methods

getUnique :: Int -> Unique Source #

Uniquable OccName # 
Uniquable UnitId # 
Uniquable ModuleName # 
Uniquable Module # 
Uniquable Name # 
Uniquable FastString # 
Uniquable Unique # 
Uniquable RegClass # 
Uniquable Reg # 

Methods

getUnique :: Reg -> Unique Source #

Uniquable RealReg # 
Uniquable VirtualReg # 
Uniquable PackageName # 
Uniquable SourcePackageId # 
Uniquable ComponentId # 
Uniquable TyCon # 
Uniquable Reg #

so we can put regs in UniqSets

Methods

getUnique :: Reg -> Unique Source #

Uniquable Var # 

Methods

getUnique :: Var -> Unique Source #

Uniquable CoAxiomRule # 
Uniquable DataCon # 
Uniquable PatSyn # 
Uniquable ConLike # 
Uniquable Class # 
Uniquable LocalReg # 
Uniquable EvBindsVar # 
Uniquable (CoAxiom br) # 

Methods

getUnique :: CoAxiom br -> Unique Source #

Uniquable name => Uniquable (AnnTarget name) # 

Methods

getUnique :: AnnTarget name -> Unique Source #