ghc-7.0.3: The GHC API

Unique

Contents

Synopsis

Main data types

data Unique

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

Class of things that we can obtain a Unique from

Methods

getUnique :: a -> Unique

Constructors, desctructors and operations on Uniques

hasKey :: Uniquable a => a -> Unique -> Bool

getKey :: Unique -> Int

newTagUnique :: Unique -> Char -> Unique

isTupleKey :: Unique -> Bool

Making built-in uniques