[commit: ghc] master: Use 'v' instead of 'tpl' for template vars (bc35c3f)

git at git.haskell.org git at git.haskell.org
Fri Nov 25 17:47:37 UTC 2016


Repository : ssh://git@git.haskell.org/ghc

On branch  : master
Link       : http://ghc.haskell.org/trac/ghc/changeset/bc35c3f9bd58465ce46cfe6cee9d911165fcdd3a/ghc

>---------------------------------------------------------------

commit bc35c3f9bd58465ce46cfe6cee9d911165fcdd3a
Author: Simon Peyton Jones <simonpj at microsoft.com>
Date:   Thu Nov 24 12:36:11 2016 +0000

    Use 'v' instead of 'tpl' for template vars
    
    Just affects Id.mkTemplateLocal, and should make debug prints
    a little less voluminous.  No user-visible change here.


>---------------------------------------------------------------

bc35c3f9bd58465ce46cfe6cee9d911165fcdd3a
 compiler/basicTypes/Id.hs | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/compiler/basicTypes/Id.hs b/compiler/basicTypes/Id.hs
index 4e8847b..b2be2c0 100644
--- a/compiler/basicTypes/Id.hs
+++ b/compiler/basicTypes/Id.hs
@@ -338,7 +338,7 @@ mkWorkerId uniq unwrkr ty
 
 -- | Create a /template local/: a family of system local 'Id's in bijection with @Int at s, typically used in unfoldings
 mkTemplateLocal :: Int -> Type -> Id
-mkTemplateLocal i ty = mkSysLocalOrCoVar (fsLit "tpl") (mkBuiltinUnique i) ty
+mkTemplateLocal i ty = mkSysLocalOrCoVar (fsLit "v") (mkBuiltinUnique i) ty
 
 -- | Create a template local for a series of types
 mkTemplateLocals :: [Type] -> [Id]



More information about the ghc-commits mailing list