Commit 9aa4ed05 authored by simonmar's avatar simonmar
Browse files

[project @ 2002-05-27 16:13:32 by simonmar]

Remove u2i, it was identical to getKey.
parent e2505cab
......@@ -17,13 +17,12 @@ Haskell).
\begin{code}
module Unique (
Unique, Uniquable(..), hasKey,
u2i, -- hack: used in UniqFM
pprUnique, pprUnique10,
mkUnique, -- Used in UniqSupply
mkUniqueGrimily, -- Used in UniqSupply only!
getKey, -- Used in Var only!
getKey, -- Used in Var, UniqFM, Name only!
incrUnique, -- Used for renumbering
deriveUnique, -- Ditto
......@@ -71,11 +70,6 @@ Fast comparison is everything on @Uniques@:
data Unique = MkUnique Int#
\end{code}
\begin{code}
u2i :: Unique -> FastInt
u2i (MkUnique i) = i
\end{code}
Now come the functions which construct uniques from their pieces, and vice versa.
The stuff about unique *supplies* is handled further down this module.
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment