Haskell).
\begin{code}
+{-# OPTIONS -w #-}
+-- The above warning supression flag is a temporary kludge.
+-- While working on this module you are encouraged to remove it and fix
+-- any warnings in the module. See
+-- http://hackage.haskell.org/trac/ghc/wiki/Commentary/CodingStyle#Warnings
+-- for details
+
module Unique (
Unique, Uniquable(..), hasKey,
#include "HsVersions.h"
import BasicTypes
-import PackageConfig
import FastString
import Outputable
instance Uniquable FastString where
getUnique fs = mkUniqueGrimily (I# (uniqueOfFS fs))
-instance Uniquable PackageId where
- getUnique pid = getUnique (packageIdFS pid)
-
instance Uniquable Int where
getUnique i = mkUniqueGrimily i
\end{code}