From 641b068da46513abf8b2697b83fb03b2c36cb528 Mon Sep 17 00:00:00 2001 From: sof Date: Sat, 5 Jul 1997 01:44:50 +0000 Subject: [PATCH] [project @ 1997-07-05 01:44:50 by sof] new function: cloneUVar --- ghc/compiler/types/Usage.lhs | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/ghc/compiler/types/Usage.lhs b/ghc/compiler/types/Usage.lhs index c3119e8..5ea9e4c 100644 --- a/ghc/compiler/types/Usage.lhs +++ b/ghc/compiler/types/Usage.lhs @@ -11,7 +11,7 @@ module Usage ( usageOmega, pprUVar, duffUsage, nullUVarEnv, mkUVarEnv, addOneToUVarEnv, growUVarEnvList, isNullUVarEnv, lookupUVarEnv, - eqUVar, eqUsage + eqUVar, eqUsage, cloneUVar ) where IMP_Ubiq(){-uitous-} @@ -36,6 +36,9 @@ type Usage = GenUsage UVar usageOmega = UsageOmega +cloneUVar :: UVar -> Unique -> UVar +cloneUVar uvar uniq = uniq + duffUsage :: GenUsage uvar duffUsage = panic "Usage of non-Type kind doesn't make sense" \end{code} -- 1.7.10.4